mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 04:31:45 +00:00
flags array and adjusting release title
This commit is contained in:
parent
6a188e00c2
commit
f6d673773a
10
.github/workflows/publish.yml
vendored
10
.github/workflows/publish.yml
vendored
@ -73,13 +73,15 @@ jobs:
|
||||
RELEASE_NAME: ${{ github.ref_name }}
|
||||
run: |
|
||||
# If the release name starts with "pre", draft release
|
||||
FLAGS=""
|
||||
FLAGS=()
|
||||
TITLE="Release $RELEASE_NAME"
|
||||
if [[ "$RELEASE_NAME" == pre* ]]; then
|
||||
FLAGS="--prerelease --draft"
|
||||
FLAGS+=(--prerelease --draft)
|
||||
TITLE="Prerelease $RELEASE_NAME"
|
||||
fi
|
||||
|
||||
# Create the release with the appropriate flags
|
||||
gh release create "$RELEASE_NAME" \
|
||||
--title "Release $RELEASE_NAME" \
|
||||
$FLAGS \
|
||||
--title "$TITLE" \
|
||||
"${FLAGS[@]}" \
|
||||
ProxySwitcher.zip
|
||||
|
Loading…
Reference in New Issue
Block a user