Skip to content

Commit

Permalink
Merge pull request #10 from rickstaa/migrate_release_action
Browse files Browse the repository at this point in the history
ci: replace 'create-release action' with gh cli
  • Loading branch information
haya14busa authored Feb 15, 2022
2 parents 20fcc3a + baae9e6 commit ecc91d8
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
tags:
- 'v*.*.*'
- "v*.*.*"
pull_request:
types:
- labeled
Expand Down Expand Up @@ -37,17 +37,15 @@ jobs:
if_true: ${{ github.ref }}
if_false: ${{ steps.bumpr.outputs.next_version }}

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

0 comments on commit ecc91d8

Please sign in to comment.