Merge branch 'release-v3.1.0' #27
Workflow file for this run
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: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
github_release: | |
name: Create Github Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Get version from tag | |
id: tag_name | |
shell: bash | |
run: | | |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} | |
- name: Get Changelog Entry | |
id: changelog_reader | |
uses: mindsers/[email protected] | |
with: | |
version: ${{ steps.tag_name.outputs.current_version }} | |
path: ./CHANGELOG.md | |
- name: Create Release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
body: ${{ steps.changelog_reader.outputs.changes }} | |
draft: false | |
prerelease: false |