Skip to content

Commit

Permalink
Add ability of pre-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 authored and d4rken committed Oct 10, 2022
1 parent c852e8b commit 657c288
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 657c288

Please sign in to comment.