mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Rework release workflow to create beta releases
This commit is contained in:
parent
415532ff07
commit
e075453330
1 changed files with 11 additions and 4 deletions
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -3,7 +3,7 @@ name: Release plugin
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- "[0-9].[0-9]+.[0-9]+"
|
||||
- "[0-9].[0-9]+.[0-9]+*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -27,6 +27,13 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release create "${{ github.ref_name }}" \
|
||||
--title="${{ github.ref_name }}" \
|
||||
main.js manifest.json styles.css
|
||||
if [[ "${{ github.ref_name }}" == *-beta ]]; then
|
||||
gh release create "${{ github.ref_name }}" \
|
||||
--title="${{ github.ref_name }}" \
|
||||
--prerelease \
|
||||
main.js manifest.json styles.css
|
||||
else
|
||||
gh release create "${{ github.ref_name }}" \
|
||||
--title="${{ github.ref_name }}" \
|
||||
main.js manifest.json styles.css
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue