From 7b438de4f18088ffd30643ea2b8b3ee912ff04ce Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 19 May 2023 03:45:50 +0200 Subject: [PATCH] re-create tag manually to avoid force push --- .github/workflows/build.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b300f74..15108d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,11 +56,15 @@ jobs: - uses: actions/download-artifact@v3 with: path: ./artifacts - - uses: rickstaa/action-create-tag@v1 - with: - tag: nightly - tag_exists_error: false - force_push_tag: true + - name: Delete existing tag + continue-on-error: true + run: | + git tag -d nightly; + git push --delete origin refs/tags/nightly; + - name: Create nightly tag + run: | + git tag nightly; + git push origin nightly; - name: Create zip files run: | cd ./artifacts; @@ -92,10 +96,10 @@ jobs: path: ./artifacts - name: Create zip files run: | - cd ./artifacts; - for folder in */; - do zip -r "${folder%/}.zip" "$folder"; - rm -rf "$folder" + cd ./artifacts; + for folder in */; do + zip -r "${folder%/}.zip" "$folder"*; + rm -rf "$folder"; done; cd ..; - uses: rlespinasse/github-slug-action@v4.4.1