Skip to content

Commit

Permalink
ci: replace 'create-release action' with gh cli (#49)
Browse files Browse the repository at this point in the history
This commit replaces the [create-release
action](https://github.com/actions/create-release) since this action was
depricated.
  • Loading branch information
rickstaa committed Feb 10, 2022
1 parent e95a7c6 commit 0d6daa0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Expand Up @@ -37,18 +37,13 @@ jobs:
if_true: ${{ github.ref }}
if_false: ${{ steps.bumpr.outputs.next_version }}

# Create release.
- uses: actions/create-release@v1
if: "steps.tag.outputs.value != ''"
# Create release
- if: "steps.tag.outputs.value != ''"
run: |
gh release create ${{ steps.tag.outputs.value }} -t "Release ${{ steps.tag.outputs.value }}" --notes "${{ steps.bumpr.outputs.message }}"
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.value }}
release_name: Release ${{ steps.tag.outputs.value }}
body: ${{ steps.bumpr.outputs.message }}
draft: false
prerelease: false

release-check:
if: github.event.action == 'labeled'
Expand Down

0 comments on commit 0d6daa0

Please sign in to comment.