From 6ebb2a6fffcd91db46626710800442c4f9012945 Mon Sep 17 00:00:00 2001 From: Binnette Date: Sat, 30 Nov 2024 09:15:08 +0100 Subject: [PATCH] Add build artifact in nightly builds --- .github/workflows/nightly.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 396a0471..fb0cc356 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,6 +1,9 @@ name: Nightly APK on: + push: + branches: + - workflow-nightly schedule: # Scheduled jobs only run on the default repository branch - cron: "0 1 * * *" workflow_dispatch: @@ -35,9 +38,15 @@ jobs: - name: Rename output APK run: | - DATE=$(date +'%Y%m%d%H%M') + DATE=$(date +'%Y%m%d-%H%M') mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/OSMTracker-nightly-$DATE.apk + - name: Upload a Build Artifact + uses: actions/upload-artifact@v4.4.3 + with: + name: nightly-apk + path: app/build/outputs/apk/debug/OSMTracker-nightly-*.apk + - name: Delete existing Nightly release run: gh release delete nightly --cleanup-tag --yes env: