Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Meggle committed Nov 20, 2024
1 parent 7e39d58 commit 0ed34f2
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,24 @@ jobs:
echo "EOF" >> $GITHUB_ENV
# Step 3: Create a GitHub Release
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
permissions:
contents: write
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref_name }}
# release_name: Release ${{ github.ref_name }}
# body: ${{ env.CHANGELOG_CONTENT }}
# draft: false
# prerelease: false

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: ${{ env.CHANGELOG_CONTENT }}
draft: false
prerelease: false
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${tag#v}" \
--generate-notes

0 comments on commit 0ed34f2

Please sign in to comment.