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:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn
|
uses: nick-invision/retry@v2.0.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
|
max_attempts: 3
|
||||||
|
command: cd ${{env.desktop-directory}} && yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build --mac --mac-dmg
|
uses: nick-invision/retry@v2.0.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
|
command: cd ${{env.desktop-directory}} && yarn build --mac --mac-dmg
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
@@ -67,11 +73,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn
|
uses: nick-invision/retry@v2.0.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
|
max_attempts: 3
|
||||||
|
command: cd ${{env.desktop-directory}} && yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build --linux
|
uses: nick-invision/retry@v2.0.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
|
command: cd ${{env.desktop-directory}} && yarn build --linux
|
||||||
- name: Upload Linux
|
- name: Upload Linux
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
@@ -89,11 +101,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn
|
uses: nick-invision/retry@v2.0.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
|
max_attempts: 3
|
||||||
|
command: cd ${{env.desktop-directory}} && yarn
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build --win
|
uses: nick-invision/retry@v2.0.0
|
||||||
working-directory: ${{env.desktop-directory}}
|
with:
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
|
command: cd ${{env.desktop-directory}} && yarn build --win
|
||||||
- name: Upload Windows
|
- name: Upload Windows
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user