From 032d3ded506f31e01dc9c1ac59bbaa2b3fd14247 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Wed, 14 Jun 2023 20:46:42 -0500 Subject: [PATCH] remove latest release --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 46640c1..cb75e54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,14 @@ jobs: contents: write # release changes require contents write steps: - uses: actions/checkout@v3 - # - name: remove last latest release - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # run: gh release delete latest + - name: create versioned release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release create v${{ github.run_number }} --notes "Release ${{ github.run_number }}" + - name: remove last latest release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release delete latest - name: create latest release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -41,10 +45,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload ${{ github.run_number }} dist/ - - name: create versioned release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release create v${{ github.run_number }} --notes "Release ${{ github.run_number }}" - name: Upload Release Asset env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}