Require Import Extensions (#122) #30
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: | |
- uses: actions/checkout@v3 | |
- name: Parse Changelog | |
id: changelog | |
uses: coditory/changelog-parser@v1.0.2 | |
- 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: | |
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' }} |