GHA: Automatically create a release for versioned tags

This commit is contained in:
James McCoy 2020-12-05 11:48:07 -05:00
parent 7ab458f929
commit f7fd7ba745
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -8,6 +8,9 @@ on:
description: 'Tag name for release'
required: false
default: nightly
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
linux:
@ -105,6 +108,10 @@ jobs:
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
- if: github.event_name == 'scheduled'
run: echo 'TAG_NAME=nightly' >> $GITHUB_ENV
- if: github.event_name == 'push'
run: |
TAG_NAME=${{ github.ref }}
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
- if: env.TAG_NAME == 'nightly'
run: echo 'SUBJECT=Nvim development (prerelease) build' >> $GITHUB_ENV
- if: env.TAG_NAME != 'nightly'