Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
21c48a6486 | |||
917753f7d1 | |||
909c0436cf | |||
9714851005 | |||
d3600f7200 | |||
985036e1e7 | |||
397a2fd54d | |||
b40cc92331 | |||
9656556f83 | |||
3afe17a9db |
@ -77,33 +77,38 @@ jobs:
|
|||||||
git config --global user.email "actions@gitea"
|
git config --global user.email "actions@gitea"
|
||||||
git remote set-url origin https://x:${{ secrets.TOKEN }}@git.devbeni.lol/MineDivinity/pack.git
|
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
|
- name: Commit updates
|
||||||
run: |
|
run: |
|
||||||
git pull origin main
|
git add versions.txt pack/pack.mcmeta MineDivinity-Pack.zip MineDivinity-Pack.sha1.txt
|
||||||
git add versions.txt pack/pack.mcmeta MineDivinity-Pack.zip
|
|
||||||
git commit -m "Update to version ${{ env.VERSION }} [skip ci]"
|
git commit -m "Update to version ${{ env.VERSION }} [skip ci]"
|
||||||
|
git pull origin main --rebase
|
||||||
git push origin main
|
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
|
- name: Create Release
|
||||||
id: create-release
|
id: create-release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.VERSION }}
|
tag_name: latest
|
||||||
release_name: MineDivinity Pack v${{ env.VERSION }}
|
release_name: MineDivinity Pack (Latest) v${{ env.VERSION }}
|
||||||
body: |
|
body: |
|
||||||
Minecraft Texture Pack Release
|
Minecraft Texture Pack Release
|
||||||
Version: ${{ env.VERSION }}
|
Version: ${{ env.VERSION }}
|
||||||
|
1
MineDivinity-Pack.sha1.txt
Normal file
1
MineDivinity-Pack.sha1.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
4c7587735fbad76b0078c9d224fa815b680885ba MineDivinity-Pack.zip
|
Binary file not shown.
@ -67,7 +67,7 @@
|
|||||||
"type": "bitmap",
|
"type": "bitmap",
|
||||||
"file": "minecraft:gui/auth.png",
|
"file": "minecraft:gui/auth.png",
|
||||||
"ascent": 10,
|
"ascent": 10,
|
||||||
"height": 10,
|
"height": 11,
|
||||||
"chars": [
|
"chars": [
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
@ -76,7 +76,7 @@
|
|||||||
"type": "bitmap",
|
"type": "bitmap",
|
||||||
"file": "minecraft:gui/lobby.png",
|
"file": "minecraft:gui/lobby.png",
|
||||||
"ascent": 10,
|
"ascent": 10,
|
||||||
"height": 10,
|
"height": 11,
|
||||||
"chars": [
|
"chars": [
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
@ -85,7 +85,7 @@
|
|||||||
"type": "bitmap",
|
"type": "bitmap",
|
||||||
"file": "minecraft:gui/skyblock.png",
|
"file": "minecraft:gui/skyblock.png",
|
||||||
"ascent": 10,
|
"ascent": 10,
|
||||||
"height": 10,
|
"height": 11,
|
||||||
"chars": [
|
"chars": [
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
@ -94,7 +94,7 @@
|
|||||||
"type": "bitmap",
|
"type": "bitmap",
|
||||||
"file": "minecraft:gui/skypvp.png",
|
"file": "minecraft:gui/skypvp.png",
|
||||||
"ascent": 10,
|
"ascent": 10,
|
||||||
"height": 10,
|
"height": 11,
|
||||||
"chars": [
|
"chars": [
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"color": "#FF5555"
|
"color": "#FF5555"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "v1.2.0",
|
"text": "v1.2.4",
|
||||||
"bold": true,
|
"bold": true,
|
||||||
"color": "#FFAA00"
|
"color": "#FFAA00"
|
||||||
}
|
}
|
||||||
|
@ -18,3 +18,7 @@ New version: 1.1.7
|
|||||||
New version: 1.1.8
|
New version: 1.1.8
|
||||||
New version: 1.1.9
|
New version: 1.1.9
|
||||||
New version: 1.2.0
|
New version: 1.2.0
|
||||||
|
New version: 1.2.1
|
||||||
|
New version: 1.2.2
|
||||||
|
New version: 1.2.3
|
||||||
|
New version: 1.2.4
|
||||||
|
Reference in New Issue
Block a user