diff --git a/.github/workflows/Sync+build+release Gadgetbridge-osmand-experiments.yml b/.github/workflows/Sync+build+release Gadgetbridge-osmand-experiments.yml index dc36b4af5d..5ea45dcf9b 100644 --- a/.github/workflows/Sync+build+release Gadgetbridge-osmand-experiments.yml +++ b/.github/workflows/Sync+build+release Gadgetbridge-osmand-experiments.yml @@ -68,8 +68,16 @@ jobs: run: sudo apt-get install openjdk-11-jdk git adb -y - name: Build apk run: ./gradlew --no-daemon assembleRelease + - name: Tag + if: startsWith(github.ref, 'refs/heads/release/') + run: | + git tag "v$env:GitVersion_SemVer" + git push origin "v$env:GitVersion_SemVer" - name: Release apk + if: startsWith(github.ref, 'refs/heads/release/') uses: softprops/action-gh-release@v1 - #if: startsWith(github.ref, 'refs/tags/') with: + name: v${{ env.GitVersion_SemVer }} files: app/build/outputs/apk/app-debug.apk + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}