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 7c56894
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/create_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,19 @@ 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: |
ls -a
unzip duckduckgo-dmg
rm -f duckduckgo-dmg
- 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 7c56894

Please sign in to comment.