mirror of
https://github.com/csd4ni3l/shatterstack.git
synced 2026-01-01 04:23:48 +01:00
Recreate latest tag before releasing
This commit is contained in:
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@@ -54,7 +54,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ShatterStack-${{ runner.os }}.zip
|
name: ShatterStack-${{ runner.os }}.zip
|
||||||
path: zip_output/ShatterStack-${{ runner.os }}.zip
|
path: zip_output/ShatterStack-${{ runner.os }}.zip
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create GitHub Release
|
name: Create GitHub Release
|
||||||
needs: build
|
needs: build
|
||||||
@@ -63,7 +62,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Download All Zipped Builds
|
- name: Download All Zipped Builds
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@@ -76,7 +75,19 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Delete Git tag (if exists)
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
git push origin :refs/tags/latest
|
||||||
|
git tag -d latest
|
||||||
|
|
||||||
|
- name: Recreate Git tag at HEAD
|
||||||
|
run: |
|
||||||
|
git tag latest
|
||||||
|
git push origin latest
|
||||||
|
|
||||||
- name: Create the new release
|
- name: Create the new release
|
||||||
run: gh release create latest downloads/**/ShatterStack-*.zip --title "Latest Build" --notes "Most recent multi-platform builds of ShatterStack"
|
run: gh release create latest downloads/**/ShatterStack-*.zip --title "Latest Build" --notes "Most recent multi-platform builds of ShatterStack"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user