Create a new release when a tag is pushed

This commit is contained in:
Oliver Davies 2020-07-15 00:21:54 +01:00 committed by GitHub
parent 8b38214205
commit d763af36e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
.github/workflows/create-release.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
---
name: Release
on:
push:
tags:
jobs:
build:
name: Create a new release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: "Determine tag"
id: "determine-tag"
run: "echo \"::set-output name=tag::${GITHUB_REF#refs/tags/}\""
- name: "Create release"
uses: "actions/create-release@v1.1.1"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
draft: false
prerelease: false
release_name: "${{ steps.determine-tag.outputs.tag }}"
tag_name: "${{ steps.determine-tag.outputs.tag }}"