From 4f09fe47297c18bbab0c103589ce03dc5ca2f307 Mon Sep 17 00:00:00 2001 From: kirides Date: Fri, 5 Jan 2024 16:08:43 +0100 Subject: [PATCH] pipeline: we need to delete the old release, or else source code will be outdated... --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdd88a46..25f20073 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,6 +105,15 @@ jobs: (Get-FileHash "${{env.RELEASE_DIR}}.zip" -Algorithm SHA256).hash | Out-File -FilePath "${{env.RELEASE_DIR}}.zip.sha256" type "${{env.RELEASE_DIR}}.zip.sha256" + - name: Delete old nightly + if: github.ref_name == 'master' + # v1.0.1 + uses: dev-drprasad/delete-tag-and-release@8cd619d00037e4aeb781909c9a6b03940507d0da + with: + delete_release: true + tag_name: nightly + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Create new nightly if: github.ref_name == 'master' # v1.13.0