Compare commits
6 Commits
v1.2.2
...
909c0436cf
Author | SHA1 | Date | |
---|---|---|---|
909c0436cf | |||
9714851005 | |||
d3600f7200 | |||
985036e1e7 | |||
397a2fd54d | |||
b40cc92331 |
@ -77,33 +77,38 @@ jobs:
|
||||
git config --global user.email "actions@gitea"
|
||||
git remote set-url origin https://x:${{ secrets.TOKEN }}@git.devbeni.lol/MineDivinity/pack.git
|
||||
|
||||
- name: Delete existing tag if present
|
||||
run: |
|
||||
if git rev-parse v${{ env.VERSION }} >/dev/null 2>&1; then
|
||||
git tag -d v${{ env.VERSION }}
|
||||
git push --delete origin v${{ env.VERSION }} || true
|
||||
fi
|
||||
|
||||
- name: Create Tag
|
||||
run: |
|
||||
git tag -a v${{ env.VERSION }} -m "Release v${{ env.VERSION }}"
|
||||
git push origin v${{ env.VERSION }}
|
||||
|
||||
- name: Commit updates
|
||||
run: |
|
||||
git pull origin main
|
||||
git add versions.txt pack/pack.mcmeta MineDivinity-Pack.zip
|
||||
git pull origin main --rebase
|
||||
git add versions.txt pack/pack.mcmeta MineDivinity-Pack.zip MineDivinity-Pack.sha1.txt
|
||||
git commit -m "Update to version ${{ env.VERSION }} [skip ci]"
|
||||
git push origin main
|
||||
|
||||
- name: Delete existing release
|
||||
run: |
|
||||
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.TOKEN }}" "https://git.devbeni.lol/api/v1/repos/MineDivinity/pack/releases/tags/latest" | jq .id)
|
||||
if [ "$RELEASE_ID" != "null" ] && [ ! -z "$RELEASE_ID" ]; then
|
||||
echo "Deleting release with ID $RELEASE_ID"
|
||||
curl -s -X DELETE -H "Authorization: token ${{ secrets.TOKEN }}" "https://git.devbeni.lol/api/v1/repos/MineDivinity/pack/releases/$RELEASE_ID"
|
||||
else
|
||||
echo "No existing 'latest' release found."
|
||||
fi
|
||||
|
||||
- name: Update latest tag
|
||||
run: |
|
||||
git tag -d latest || true
|
||||
git push --delete origin latest || true
|
||||
git tag -a latest -m "Release v${{ env.VERSION }}"
|
||||
git push origin latest
|
||||
|
||||
- name: Create Release
|
||||
id: create-release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
with:
|
||||
tag_name: v${{ env.VERSION }}
|
||||
release_name: MineDivinity Pack v${{ env.VERSION }}
|
||||
tag_name: latest
|
||||
release_name: MineDivinity Pack (Latest) v${{ env.VERSION }}
|
||||
body: |
|
||||
Minecraft Texture Pack Release
|
||||
Version: ${{ env.VERSION }}
|
||||
|
BIN
MineDivinity-Pack.zip
Normal file
BIN
MineDivinity-Pack.zip
Normal file
Binary file not shown.
@ -67,7 +67,7 @@
|
||||
"type": "bitmap",
|
||||
"file": "minecraft:gui/auth.png",
|
||||
"ascent": 10,
|
||||
"height": 10,
|
||||
"height": 11,
|
||||
"chars": [
|
||||
""
|
||||
]
|
||||
@ -76,7 +76,7 @@
|
||||
"type": "bitmap",
|
||||
"file": "minecraft:gui/lobby.png",
|
||||
"ascent": 10,
|
||||
"height": 10,
|
||||
"height": 11,
|
||||
"chars": [
|
||||
""
|
||||
]
|
||||
@ -85,7 +85,7 @@
|
||||
"type": "bitmap",
|
||||
"file": "minecraft:gui/skyblock.png",
|
||||
"ascent": 10,
|
||||
"height": 10,
|
||||
"height": 11,
|
||||
"chars": [
|
||||
""
|
||||
]
|
||||
@ -94,7 +94,7 @@
|
||||
"type": "bitmap",
|
||||
"file": "minecraft:gui/skypvp.png",
|
||||
"ascent": 10,
|
||||
"height": 10,
|
||||
"height": 11,
|
||||
"chars": [
|
||||
""
|
||||
]
|
||||
|
@ -8,7 +8,7 @@
|
||||
"color": "#FF5555"
|
||||
},
|
||||
{
|
||||
"text": "v1.2.1",
|
||||
"text": "v1.2.3",
|
||||
"bold": true,
|
||||
"color": "#FFAA00"
|
||||
}
|
||||
|
@ -19,3 +19,5 @@ New version: 1.1.8
|
||||
New version: 1.1.9
|
||||
New version: 1.2.0
|
||||
New version: 1.2.1
|
||||
New version: 1.2.2
|
||||
New version: 1.2.3
|
||||
|
Reference in New Issue
Block a user