Skip to content

Commit

Permalink
chore: replace release creation action with github CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
burmecia committed Dec 5, 2023
1 parent bd6edbb commit ff34112
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

permissions:
contents: write

jobs:
release:
name: Create Release
Expand All @@ -16,18 +19,14 @@ jobs:
uses: actions/checkout@v3
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
build-linux-gnu:
name: release artifacts
Expand Down

0 comments on commit ff34112

Please sign in to comment.