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: