Skip to content

Commit

Permalink
Add build artifact in nightly builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Binnette committed Nov 30, 2024
1 parent c730655 commit 6ebb2a6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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/[email protected]
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:
Expand Down

0 comments on commit 6ebb2a6

Please sign in to comment.