Skip to content

Commit

Permalink
Keep old nightly releases (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Jan 4, 2025
1 parent 74f10b6 commit d554478
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,18 @@ jobs:
java-version: 17
distribution: 'zulu'
- name: Assemble with Gradle
run: ./gradlew -PcommitCount=$(git rev-list --count master) -PcommitHash=$(git rev-parse --short master) -PstorePassword="${{ secrets.NIGHTLY_KEYSTORE_PASSWORD }}" -PkeyPassword="${{ secrets.NIGHTLY_KEYSTORE_PASSWORD }}" assembleNightlySigned
- name: Delete existing nightly release
run: |
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/tags/nightly
- name: Delete existing nightly tag
run: git push origin --delete nightly || true
./gradlew -PcommitCount=$(git rev-list --count master) -PcommitHash=$(git rev-parse --short master) -PstorePassword="${{ secrets.NIGHTLY_KEYSTORE_PASSWORD }}" -PkeyPassword="${{ secrets.NIGHTLY_KEYSTORE_PASSWORD }}" assembleNightlySigned
mv authenticator/build/outputs/apk/nightly/signed/authenticator-nightly-signed.apk authenticator-${{ github.sha }}.apk
mv companion/build/outputs/apk/nightly/signed/companion-nightly-signed.apk companion-${{ github.sha }}.apk
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
authenticator/build/outputs/apk/nightly/signed/authenticator-nightly-signed.apk
companion/build/outputs/apk/nightly/signed/companion-nightly-signed.apk
name: Nightly Release
tag_name: nightly
authenticator${{ github.sha }}.apk
companion-${{ github.sha }}.apk
name: Nightly Release (${{ github.sha }})
tag_name: nightly-${{ github.sha }}
body: |
Nightly build for commit ${{ github.sha }}.
draft: false
Expand Down

0 comments on commit d554478

Please sign in to comment.