remove latest release

This commit is contained in:
Waylon Walker 2023-06-14 20:46:42 -05:00
parent 54046c883c
commit 032d3ded50
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -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 }}