upload in build step

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

View file

@ -19,14 +19,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create latest --notes "latest release"
- 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 }}
run: gh release upload latest dist/
release:
needs: setup
strategy:
@ -49,3 +41,11 @@ 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 }}
run: gh release upload latest dist/