Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
push:
tags: ['*']
jobs:
create:
name: Create
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- id: tag_name
run: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/}
shell: bash
- id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
release_name: ${{ steps.tag_name.outputs.current_version }}
tag_name: ${{ steps.tag_name.outputs.current_version }}
body: ${{ steps.changelog_reader.outputs.changes }}
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }}
draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }}