From 57155bfbfb959e6c8cf90a0c9aa22f31076f1446 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Mon, 19 Sep 2022 06:48:06 +0200 Subject: [PATCH] Add ability of pre-releases --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dec35d3..0f842d2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,11 +29,23 @@ jobs: skip-unshallow: 'true' abbrev: false commit-ish: HEAD + - name: Check pre-release + run: | + echo "tag=${{steps.tagger.outputs.tag}}" + if [[ ${{ steps.tagger.outputs.tag }} == *alpha* || ${{ steps.tagger.outputs.tag }} == *beta* ]] + then + prerelease=true + else + prerelease=false + fi + echo "PRE_RELEASE=$prerelease" >> $GITHUB_ENV + echo "prerelease=$prerelease" - name: Create Release uses: softprops/action-gh-release@v1 with: tag_name: ${{steps.tagger.outputs.tag}} name: ${{steps.tagger.outputs.tag}} + prerelease: ${{ env.PRE_RELEASE }} generate_release_notes: true files: ./tracker/build/outputs/aar/tracker-release.aar env: