mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
GHA: Automatically create a release for versioned tags
This commit is contained in:
parent
7ab458f929
commit
f7fd7ba745
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
@ -8,6 +8,9 @@ on:
|
|||||||
description: 'Tag name for release'
|
description: 'Tag name for release'
|
||||||
required: false
|
required: false
|
||||||
default: nightly
|
default: nightly
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v[0-9]+.[0-9]+.[0-9]+
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
@ -105,6 +108,10 @@ jobs:
|
|||||||
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
|
||||||
- if: github.event_name == 'scheduled'
|
- if: github.event_name == 'scheduled'
|
||||||
run: echo 'TAG_NAME=nightly' >> $GITHUB_ENV
|
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'
|
- if: env.TAG_NAME == 'nightly'
|
||||||
run: echo 'SUBJECT=Nvim development (prerelease) build' >> $GITHUB_ENV
|
run: echo 'SUBJECT=Nvim development (prerelease) build' >> $GITHUB_ENV
|
||||||
- if: env.TAG_NAME != 'nightly'
|
- if: env.TAG_NAME != 'nightly'
|
||||||
|
Loading…
Reference in New Issue
Block a user