Skip to content

Commit

Permalink
Unarchive DMG archive
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Apr 18, 2024
1 parent 2063221 commit c2749c7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/create_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,18 @@ jobs:
name: duckduckgo-dmg
path: ${{ github.workspace }}/dmg

- name: Unarchive DMG artifact
id: unarchive-dmg-artifact
if: ${{ steps.download-dmg-artifact.outcome == 'success' }}
continue-on-error: true
working-directory: ${{ github.workspace }}/dmg
run: |
unzip duckduckgo-dmg.zip
rm -f duckduckgo-dmg.zip
- name: Download release app
# Download the release app only if download-dmg-artifact fails
if: ${{ steps.download-dmg-artifact.outcome == 'failure' }}
if: ${{ steps.unarchive-dmg-artifact.outcome == 'failure' }}
run: |
curl -fLSs "${{ vars.RELEASE_DMG_URL }}" --output duckduckgo.dmg
hdiutil attach duckduckgo.dmg -mountpoint vanilla
Expand Down

0 comments on commit c2749c7

Please sign in to comment.