chore: v0.13.0 (#165) #92
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] | |
workflow_dispatch: | |
# This sets appropriate permissions for the default `GITHUB_TOKEN`. | |
# Protected tags are incompatible with this arrangement for now. | |
permissions: | |
contents: write | |
discussions: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Parse changelog | |
id: changelog | |
uses: coditory/[email protected] | |
- 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@v1 | |
with: | |
tag_name: v${{ steps.changelog.outputs.version }} | |
name: v${{ steps.changelog.outputs.version }} | |
body: ${{ steps.changelog.outputs.description }} | |
prerelease: true |