Add retries to release GitHub Action
Summary: Noticed that the icon download fails occasionally from GitHub. This adds a few retries in case that happens. Reviewed By: nikoant Differential Revision: D24647690 fbshipit-source-id: 3ed84cb0972b7715fd87c8b1e1e1bca9f89485a9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1fde900fcc
commit
d28610a9d2
42
.github/workflows/release.yml
vendored
42
.github/workflows/release.yml
vendored
@@ -45,11 +45,17 @@ jobs:
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Install
|
||||
run: yarn
|
||||
working-directory: ${{env.desktop-directory}}
|
||||
uses: nick-invision/retry@v2.0.0
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn
|
||||
- name: Build
|
||||
run: yarn build --mac --mac-dmg
|
||||
working-directory: ${{env.desktop-directory}}
|
||||
uses: nick-invision/retry@v2.0.0
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
@@ -67,11 +73,17 @@ jobs:
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Install
|
||||
run: yarn
|
||||
working-directory: ${{env.desktop-directory}}
|
||||
uses: nick-invision/retry@v2.0.0
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn
|
||||
- name: Build
|
||||
run: yarn build --linux
|
||||
working-directory: ${{env.desktop-directory}}
|
||||
uses: nick-invision/retry@v2.0.0
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn build --linux
|
||||
- name: Upload Linux
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
@@ -89,11 +101,17 @@ jobs:
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Install
|
||||
run: yarn
|
||||
working-directory: ${{env.desktop-directory}}
|
||||
uses: nick-invision/retry@v2.0.0
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn
|
||||
- name: Build
|
||||
run: yarn build --win
|
||||
working-directory: ${{env.desktop-directory}}
|
||||
uses: nick-invision/retry@v2.0.0
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
command: cd ${{env.desktop-directory}} && yarn build --win
|
||||
- name: Upload Windows
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user