Skip to content

Commit

Permalink
Add auto-publishing of GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
firefoxic committed Aug 13, 2024
1 parent 837f888 commit 0f61e55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ jobs:
elif echo "$RELEASE_DESCRIPTION" | grep -q '### Fixed'; then
pnpm version patch
fi
echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "RELEASE_DESCRIPTION<<EOF" >> $GITHUB_ENV
echo "$RELEASE_DESCRIPTION" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
name: "Release ${{ env.TAG_NAME }}"
body: ${{ env.RELEASE_DESCRIPTION }}
draft: false
prerelease: false
- run: git fetch --all && git switch main && git rebase release && git push origin main

0 comments on commit 0f61e55

Please sign in to comment.