Skip to content

Release on GitHub

Release on GitHub #10

Workflow file for this run

name: Release on GitHub
on:
push:
tags:
- v*
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
with:
version: ${{ steps.tag_name.outputs.tag_name }}
- 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 }}