Skip to content

Commit

Permalink
Add Checkout as the first step and replace image with the one in the …
Browse files Browse the repository at this point in the history
…scripts
  • Loading branch information
alessandroboron committed Mar 28, 2024
1 parent 6c7317e commit e6c29db
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/create_variant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ jobs:

steps:

- name: Check out the code
uses: actions/checkout@v4
with:
ref: main
sparse-checkout: |
.github
scripts
- name: Download release app
run: |
curl -fLSs "${{ vars.RELEASE_DMG_URL }}" --output duckduckgo.dmg
Expand All @@ -90,15 +98,6 @@ jobs:
- name: Install create-dmg
run: brew install create-dmg

- name: Fetch install-certs-and-profiles action
env:
GH_TOKEN: ${{ github.token }}
DEST_DIR: ".github/actions/install-certs-and-profiles"
run: |
mkdir -p "${{ env.DEST_DIR }}"
curl -fLSs $(gh api https://api.github.com/repos/${{ github.repository }}/contents/${{ env.DEST_DIR }}/action.yml?ref=${{ github.ref }} --jq .download_url) \
--output ${{ env.DEST_DIR }}/action.yml
- name: Install Apple Developer ID Application certificate
uses: ./.github/actions/install-certs-and-profiles
with:
Expand Down Expand Up @@ -159,15 +158,12 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
curl -fLSs $(gh api https://api.github.com/repos/${{ github.repository }}/contents/scripts/assets/dmg-background.png --jq .download_url) \
--output dmg-background.png
retries=3
while [[ $retries -gt 0 ]]; do
if create-dmg --volname "DuckDuckGo" \
--icon "DuckDuckGo.app" 140 160 \
--background "dmg-background.png" \
--background "scripts/assets/dmg-background.png" \
--window-size 600 400 \
--icon-size 120 \
--app-drop-link 430 160 "duckduckgo.dmg" \
Expand Down

0 comments on commit e6c29db

Please sign in to comment.