chore(release): prepare release v0.8.4 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
create-github-release: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set Vars | |
run: | | |
echo "NEW_TAG=$(git tag | sort --version-sort -r | head -1)" >> $GITHUB_ENV | |
echo "LAST_TAG=$(git tag | sort --version-sort -r | head -2 | tail -1)" >> $GITHUB_ENV | |
- name: Generate Release via CLI | |
run: | | |
echo -e "## What's Changed\n\n$(git log --pretty=format:' * %s - %h' ${{ env.LAST_TAG }}..${{ env.NEW_TAG }} --reverse)\n\n**Full Changelog:** https://github.com/${{ github.repository }}/compare/${{ env.LAST_TAG }}...${{ env.NEW_TAG }}" | gh release create "${{ env.NEW_TAG }}" -t "${{ env.NEW_TAG }}" -F - | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |