Skip to content

Commit

Permalink
ci: replace 'create-release action' with gh cli (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 authored Jun 21, 2023
1 parent 2565b32 commit 4e58de1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 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:
- master
tags:
- "v*.*.*"
- 'v*.*.*'
pull_request:
types:
- labeled
Expand Down Expand Up @@ -37,18 +37,14 @@ 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 != ''"
env:
# This token is provided by Actions, you do not need to create your own token
TAG_NAME: ${{ steps.tag.outputs.value }}
CURRENT: ${{ steps.bumpr.outputs.current_version }}
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
run: |
gh release create "${TAG_NAME}" -t "Release ${TAG_NAME/refs\/tags\//}" --generate-notes --notes-start-tag "${CURRENT}"
release-check:
if: github.event.action == 'labeled'
Expand Down

0 comments on commit 4e58de1

Please sign in to comment.