Skip to content

Commit

Permalink
chore: Align the Android Artifact Naming to Other Artifacts
Browse files Browse the repository at this point in the history
Also tweak retrying workflows to always to retry
  • Loading branch information
hrzlgnm committed Nov 5, 2024
1 parent 9461095 commit 233d107
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- name: ✏️ Rename APK file (publish only)
if: inputs.publish
run: |
mv ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-signed.apk ./src-tauri/gen/android/app/build/outputs/apk/universal/release/mdns-browser_v${{ steps.get-version.outputs.current-version }}.apk
mv ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-signed.apk ./src-tauri/gen/android/app/build/outputs/apk/universal/release/mdns-browser_${{ steps.get-version.outputs.current-version }}.apk
- name: 🚀 Publish (publish only)
if: inputs.publish
Expand All @@ -123,17 +123,17 @@ jobs:
make_latest: false
generate_release_notes: false
files: |
src-tauri/gen/android/app/build/outputs/apk/universal/release/mdns-browser_v${{ steps.get-version.outputs.current-version }}.apk
src-tauri/gen/android/app/build/outputs/apk/universal/release/mdns-browser_${{ steps.get-version.outputs.current-version }}.apk
- name: 🛡️ Attest build provenance (publish only)
if: inputs.publish
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
with:
subject-path: |
src-tauri/gen/android/app/build/outputs/apk/universal/release/mdns-browser_v${{ steps.get-version.outputs.current-version }}.apk
src-tauri/gen/android/app/build/outputs/apk/universal/release/mdns-browser_${{ steps.get-version.outputs.current-version }}.apk
retry-on-failure:
if: ${{ failure() && fromJSON(github.run_attempt) < 3 && (inputs.publish || github.ref == 'refs/heads/main') }}
if: failure() && fromJSON(github.run_attempt) < 3
needs: [build]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/desktop-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:
sbom-path: "sbom.spdx.json"

retry-on-failure:
if: ${{ failure() && fromJSON(github.run_attempt) < 3 && (inputs.tagName != '' || github.ref == 'refs/heads/main') }}
if: failure() && fromJSON(github.run_attempt) < 3
needs: [build]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 233d107

Please sign in to comment.