Skip to content

Commit

Permalink
release: refactor
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Aug 2, 2023
1 parent 8670b7b commit aa5fc7d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ jobs:
release:
name: publish release on github
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
- name: create release
id: create_release
uses: actions/create-release@v1
env:
# NOTE(ww): GitHub actions doesn't allow workflows to trigger other workflows
# by default. The workaround is to use a PAT instead of the default GITHUB_TOKEN.
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: ${{ contains(github.ref, 'pre') || contains(github.ref, 'rc') }}

0 comments on commit aa5fc7d

Please sign in to comment.