mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 04:31:45 +00:00
prerelease draft releases for testing
This commit is contained in:
parent
6526d861d2
commit
6a188e00c2
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
@ -5,7 +5,9 @@ name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: 'v*'
|
||||
tags:
|
||||
- 'v*'
|
||||
- 'pre*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -68,7 +70,16 @@ jobs:
|
||||
- name: Create release
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
RELEASE_NAME: ${{ github.ref_name }}
|
||||
run: |
|
||||
gh release create "${{ github.ref_name }}" \
|
||||
--title "Release ${{ github.ref_name }}" \
|
||||
# If the release name starts with "pre", draft release
|
||||
FLAGS=""
|
||||
if [[ "$RELEASE_NAME" == pre* ]]; then
|
||||
FLAGS="--prerelease --draft"
|
||||
fi
|
||||
|
||||
# Create the release with the appropriate flags
|
||||
gh release create "$RELEASE_NAME" \
|
||||
--title "Release $RELEASE_NAME" \
|
||||
$FLAGS \
|
||||
ProxySwitcher.zip
|
||||
|
Loading…
Reference in New Issue
Block a user