Skip to content

Commit

Permalink
Add pre-release support with "beta"/"pre" tags (#362)
Browse files Browse the repository at this point in the history
* Add pre-release support with "...-beta" tags

* Add "pre" as keyword for prereleases
  • Loading branch information
Bara authored Jan 1, 2022
1 parent d5842a2 commit cfb969b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
echo "SOURCEMOD_PATH=$SOURCEMOD_PATH" >> $GITHUB_ENV
echo "SCRIPTING_PATH=$SOURCEMOD_PATH/scripting" >> $GITHUB_ENV
echo "INCLUDE_PATH=$SOURCEMOD_PATH/scripting/include" >> $GITHUB_ENV
if [[ ${{ github.ref }} == *"pre"* || ${{ github.ref }} == *"beta"* ]]; then
echo "PRE_RELEASE=true" >> $GITHUB_ENV
else
echo "PRE_RELEASE=false" >> $GITHUB_ENV
fi
- name: Setup SourcePawn Compiler 1.10
uses: rumblefrog/setup-sp@master
Expand Down Expand Up @@ -55,7 +60,7 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
prerelease: ${{ env.PRE_RELEASE }}

- name: Upload SurfTimer
id: upload-surftimer
Expand Down

0 comments on commit cfb969b

Please sign in to comment.