Skip to content

Commit

Permalink
ci: publish add retry to build step
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed May 14, 2024
1 parent 3c1e7bc commit 8eddb7f
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ jobs:
security find-identity -v $KEYCHAIN_PATH -p codesigning
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $APPLE_KEYCHAIN_PASSWORD $KEYCHAIN_PATH
- name: Build
run: yarn workspace ${{ matrix.app }} build
shell: bash
uses: nick-fields/retry@v3
with:
max_attempts: 3
timeout_minutes: 30
retry_wait_seconds: 30
command: yarn workspace ${{ matrix.app }} build
- name: Download daemon binary
run: yarn workspace ${{ matrix.app }} download:binary
shell: bash
Expand All @@ -70,6 +74,7 @@ jobs:
with:
max_attempts: 3
timeout_minutes: 30
retry_wait_seconds: 30
command: |
yarn workspace ${{ matrix.app }} publish --arch=arm64,x64
linux:
Expand All @@ -85,8 +90,12 @@ jobs:
with:
node_version: 20.10.0
- name: Build
run: yarn workspace ${{ matrix.app }} build
shell: bash
uses: nick-fields/retry@v3
with:
max_attempts: 3
timeout_minutes: 30
retry_wait_seconds: 30
command: yarn workspace ${{ matrix.app }} build
- name: Download daemon binary
run: yarn workspace ${{ matrix.app }} download:binary
shell: bash
Expand All @@ -101,6 +110,7 @@ jobs:
with:
max_attempts: 3
timeout_minutes: 30
retry_wait_seconds: 30
command: |
yarn workspace ${{ matrix.app }} publish --arch=arm64,x64
windows:
Expand All @@ -118,8 +128,12 @@ jobs:
- name: Setup signing
run: dotnet tool install --global AzureSignTool
- name: Build
run: yarn workspace ${{ matrix.app }} build
shell: bash
uses: nick-fields/retry@v3
with:
max_attempts: 3
timeout_minutes: 30
retry_wait_seconds: 30
command: yarn workspace ${{ matrix.app }} build
- name: Download daemon binary
run: yarn workspace ${{ matrix.app }} download:binary
shell: bash
Expand All @@ -134,6 +148,7 @@ jobs:
with:
max_attempts: 3
timeout_minutes: 30
retry_wait_seconds: 30
command: |
yarn workspace ${{ matrix.app }} publish --arch=x64
# #TODO: probably not correct
Expand Down

0 comments on commit 8eddb7f

Please sign in to comment.