aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-10-17 23:39:00 -0400
committerJames McCoy <jamessan@jamessan.com>2021-10-30 14:02:04 -0400
commiteede587b06ee286582445886c13c3bdc68cfa40d (patch)
treee293b93d93f79a5352be2ee3242c6f79cd55aff7
parent0ce800753e18bea7e66827ee6e3d3500c83eddb0 (diff)
downloadrneovim-eede587b06ee286582445886c13c3bdc68cfa40d.tar.gz
rneovim-eede587b06ee286582445886c13c3bdc68cfa40d.tar.bz2
rneovim-eede587b06ee286582445886c13c3bdc68cfa40d.zip
ci(release): re-publish "stable" release for versioned releases
[skip ci]
-rw-r--r--.github/workflows/release.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dea056312d..7eca098d01 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -170,17 +170,19 @@ jobs:
TAG_NAME=${{ github.ref }}
echo "TAG_NAME=${TAG_NAME#refs/tags/}" >> $GITHUB_ENV
- if: env.TAG_NAME == 'nightly'
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
(echo 'SUBJECT=Nvim development (prerelease) build';
echo 'PRERELEASE=--prerelease') >> $GITHUB_ENV
+ gh release delete nightly --yes
- if: env.TAG_NAME != 'nightly'
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
(echo 'SUBJECT=Nvim release build';
echo 'PRERELEASE=') >> $GITHUB_ENV
- - if: env.TAG_NAME == 'nightly'
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh release delete nightly --yes
+ gh release delete stable --yes
# `sha256sum` outputs <sha> <path>, so we cd into each dir to drop the
# containing folder from the output.
- name: Generate Linux64 SHA256 checksums
@@ -220,3 +222,6 @@ jobs:
run: |
envsubst < "$GITHUB_WORKSPACE/.github/workflows/notes.md" > "$RUNNER_TEMP/notes.md"
gh release create $TAG_NAME $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos/* nvim-linux64/* appimage/* nvim-win32/* nvim-win64/*
+ if [ "$TAG_NAME" != "nightly" ]; then
+ gh release create stable $PRERELEASE --notes-file "$RUNNER_TEMP/notes.md" --title "$SUBJECT" --target $GITHUB_SHA nvim-macos/* nvim-linux64/* appimage/* nvim-win32/* nvim-win64/*
+ fi