Skip to content

Commit

Permalink
Add release stage
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjavaxx committed Dec 6, 2023
1 parent d9b60bf commit 81fd4fd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,22 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: ./dist
release:
needs: [build]
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
- name: Create GitHub Release
run: |
gh release create --draft \
--repo ${{ github.repository }} \
--title ${{ github.ref_name }} \
--notes "Release ${{ github.ref_name }}" \
${{ github.ref_name }} \
artifact/*
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 81fd4fd

Please sign in to comment.