Skip to content

Commit

Permalink
Fix release deletion step (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Dec 23, 2024
1 parent 05945d3 commit eff23d4
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,11 @@ jobs:
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: Upload authenticator APK
uses: actions/upload-artifact@v4
with:
name: authenticator.apk
path: authenticator/build/outputs/apk/nightly/signed/authenticator-nightly-signed.apk
if-no-files-found: error
- name: Upload companion APK
uses: actions/upload-artifact@v4
with:
name: companion.apk
path: companion/build/outputs/apk/nightly/signed/companion-nightly-signed.apk
if-no-files-found: error
- name: Delete existing nightly tag
run: git push origin --delete nightly || true
- 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
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/tags/nightly
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit eff23d4

Please sign in to comment.