Skip to content

Commit 32dee2d

Browse files
committed
Rework release workflow to create beta releases
1 parent 415532f commit 32dee2d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release plugin
33
on:
44
push:
55
tags:
6-
- "[0-9].[0-9]+.[0-9]+"
6+
- "[0-9].[0-9]+.[0-9]+*"
77

88
jobs:
99
build:
@@ -27,6 +27,13 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
run: |
30-
gh release create "${{ github.ref_name }}" \
31-
--title="${{ github.ref_name }}" \
32-
main.js manifest.json styles.css
30+
if [[ "${{ github.ref_name }}" == *-beta ]]; then
31+
gh release create "${{ github.ref_name }}" \
32+
--title="${{ github.ref_name }}" \
33+
--prerelease \
34+
main.js manifest.json styles.css
35+
else
36+
gh release create "${{ github.ref_name }}" \
37+
--title="${{ github.ref_name }}" \
38+
main.js manifest.json styles.css
39+
fi

0 commit comments

Comments
 (0)