Skip to content

Commit

Permalink
ci: add retry to package publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed May 14, 2024
1 parent 72e1ebc commit 619a3e7
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package executable bundles, sign and notarize, make and publish distributables
uses: nick-fields/retry@v3
env:
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_API_KEY_PATH: ${{ env.APPLE_API_KEY_PATH }}
BUCKET_ACCESS_KEY_ID: ${{ secrets.BUCKET_ACCESS_KEY_ID }}
BUCKET_SECRET_ACCESS_KEY: ${{ secrets.BUCKET_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn workspace ${{ matrix.app }} publish --arch=arm64,x64
shell: bash
with:
max_attempts: 3
command: |
yarn workspace ${{ matrix.app }} publish --arch=arm64,x64
linux:
strategy:
fail-fast: false
Expand All @@ -89,12 +92,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package executable bundles, make and publish distributables
uses: nick-fields/retry@v3
env:
BUCKET_ACCESS_KEY_ID: ${{ secrets.BUCKET_ACCESS_KEY_ID }}
BUCKET_SECRET_ACCESS_KEY: ${{ secrets.BUCKET_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn workspace ${{ matrix.app }} publish --arch=arm64,x64
shell: bash
with:
max_attempts: 3
command: |
yarn workspace ${{ matrix.app }} publish --arch=arm64,x64
windows:
strategy:
fail-fast: false
Expand All @@ -118,14 +124,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package executable bundles, sign and notarize, make and publish distributables
uses: nick-fields/retry@v3
env:
BUCKET_ACCESS_KEY_ID: ${{ secrets.BUCKET_ACCESS_KEY_ID }}
BUCKET_SECRET_ACCESS_KEY: ${{ secrets.BUCKET_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
yarn workspace ${{ matrix.app }} publish --arch=x64
# #TODO: probably not correct
# APP_PATH="out/${{ matrix.app }}-win32-x64/${{ matrix.app }}.app"
# BINARY_PATH="$APP_PATH/Contents/Windows/${{ matrix.app }}.exe"
# azuresigntool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v $BINARY_PATH
shell: bash
with:
max_attempts: 3
command: |
yarn workspace ${{ matrix.app }} publish --arch=x64
# #TODO: probably not correct
# APP_PATH="out/${{ matrix.app }}-win32-x64/${{ matrix.app }}.app"
# BINARY_PATH="$APP_PATH/Contents/Windows/${{ matrix.app }}.exe"
# azuresigntool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v $BINARY_PATH

0 comments on commit 619a3e7

Please sign in to comment.