chore: update tests (#135) #44
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 to main, if the latest version in CHANGELOG.md is different from the latest version tag, create a new tag and release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Parse Changelog | |
id: changelog | |
uses: coditory/changelog-parser@4f567c6914ee75eff434b4d946393dfd254f8f98 | |
- name: Publish Release | |
if: steps.changelog.outputs.status != 'unreleased' | |
# This action doesn't create a new release if the tag already exists | |
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 | |
with: | |
token: ${{ secrets.RELEASE_TOKEN }} | |
tag_name: v${{ steps.changelog.outputs.version }} | |
name: v${{ steps.changelog.outputs.version }} | |
body: ${{ steps.changelog.outputs.description }} | |
prerelease: ${{ steps.changelog.outputs.status == 'prerelease' }} |