Update release-package.yml #11
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: Release on GitHub | |
on: | |
push: | |
jobs: | |
release-asset: | |
name: Release on GitHub | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get version from tag | |
id: tag_name | |
run: | |
| | |
echo ::set-output name=tag_name::${GITHUB_REF#refs/tags/v} | |
- name: Parse Changelog | |
id: changelog | |
uses: coditory/changelog-parser@v1 | |
- name: Create GitHub Release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
name: Release ${{ steps.changelog.outputs.version }} - (${{ steps.changelog.outputs.date }}) | |
tag: v${{ steps.changelog.outputs.version }} | |
body: ${{ steps.changelog.outputs.description }} | |
prerelease: $${{ steps.changelog.outputs.status == 'prereleased' }} | |
draft: $${{ steps.changelog.outputs.status == 'unreleased' }} | |
allowUpdates: true | |
token: ${{ secrets.GITHUB_TOKEN }} |