tweak release

This commit is contained in:
adbenitez
2021-12-16 12:38:45 -05:00
parent 1fbf04ed28
commit aa61597804
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -10,12 +10,16 @@ jobs:
runs-on: ubuntu-latest
outputs:
match: ${{ steps.check-tag.outputs.match }}
beta: ${{ steps.check-tag.outputs.beta }}
steps:
- id: check-tag
run: |
if [[ "${{ github.event.ref }}" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
echo ::set-output name=match::true
fi
if [[ "${{ github.event.ref }}" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+.*-beta$ ]]; then
echo ::set-output name=beta::true
fi
build:
needs: check
@@ -63,5 +67,6 @@ jobs:
with:
token: "${{ secrets.GITHUB_TOKEN }}"
body: "Auto-generated release"
prerelease: endsWith(github.event.ref, '-beta')
prerelease: needs.check.outputs.beta == 'true'
fail_on_unmatched_files: true
files: build/outputs/apk/gplay/release/*.apk