Added prerelease to build

This commit is contained in:
soraefir 2024-04-07 11:25:19 +02:00
parent 3fe83cff2e
commit a360c7496b
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -50,15 +50,15 @@ jobs:
- name: Build APK - name: Build APK
run: ./gradlew assembleSignedRelease run: ./gradlew assembleSignedRelease
# - name: Upload APK
# uses: actions/upload-artifact@v4
# with:
# name: app.apk
# path: app/build/outputs/apk/release/app-release.apk
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: | files: |
app/build/outputs/apk/signedRelease/app-release.apk app/build/outputs/apk/signedRelease/app-signedRelease.apk
prerelease: |
if [[ ${{ github.ref }} =~ ^refs/tags/[0-9]+\.[0-9]+[a-z]+$ ]]; then
echo "false"
else
echo "true"
fi