Skip to content

Commit

Permalink
Clean up workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Apr 19, 2024
1 parent e3acce6 commit 0d90f5a
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/create_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,20 @@ jobs:
name: duckduckgo-dmg
path: ${{ github.workspace }}

- name: Extract App from DMG
id: extract-app-from-dmg
if: ${{ steps.download-dmg-artifact.outcome == 'success' }}
continue-on-error: true
run: |
hdiutil attach duckduckgo.dmg -mountpoint vanilla
mkdir -p dmg
cp -R vanilla/DuckDuckGo.app dmg/DuckDuckGo.app
hdiutil detach vanilla
rm -f duckduckgo.dmg
- name: Download release app
# Download the release app only if download-dmg-artifact fails
if: ${{ steps.extract-app-from-dmg.outcome == 'failure' }}
if: ${{ steps.download-dmg-artifact.outcome == 'failure' }}
run: |
curl -fLSs "${{ vars.RELEASE_DMG_URL }}" --output duckduckgo.dmg
hdiutil attach duckduckgo.dmg -mountpoint vanilla
mkdir -p dmg
cp -R vanilla/DuckDuckGo.app dmg/DuckDuckGo.app
hdiutil detach vanilla
rm -f duckduckgo.dmg
- name: Extract App from DMG
id: extract-app-from-dmg
run: |
hdiutil attach duckduckgo.dmg -mountpoint vanilla
mkdir -p dmg
cp -R vanilla/DuckDuckGo.app dmg/DuckDuckGo.app
hdiutil detach vanilla
rm -f duckduckgo.dmg
- name: Install create-dmg
run: brew install create-dmg
Expand Down

0 comments on commit 0d90f5a

Please sign in to comment.