Version 3.1.10 #6
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: Create release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
create-release: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get semver number | |
id: get_semver | |
env: | |
TAG_NAME: ${{ github.ref }} | |
run: echo "::set-output name=num::${TAG_NAME:11}" | |
- name: Create release on GitHub API | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: "v${{ steps.get_semver.outputs.num }}" | |
body: | | |
Version ${{ steps.get_semver.outputs.num }} | |
draft: false | |
prerelease: false |