Skip to content

Commit

Permalink
automatically mark pre-release if tag name contains 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
BLuFeNiX committed Jul 12, 2021
1 parent 648485b commit 2069e97
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set env
- name: Set version env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set prerelease env
run: echo "IS_PRE_RELEASE=false" >> $GITHUB_ENV
- name: Set prerelease env part 2
if: ${{ contains(env.RELEASE_VERSION, 'beta') }}
run: echo "IS_PRE_RELEASE=true" >> $GITHUB_ENV
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v2
Expand All @@ -30,3 +35,4 @@ jobs:
name: "TeleportationRunes ${{ env.RELEASE_VERSION }}"
artifacts: "target/TeleportationRunes.jar"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ env.IS_PRE_RELEASE }}

0 comments on commit 2069e97

Please sign in to comment.