|
@ -9,7 +9,7 @@ jobs: |
|
|
|
|
|
|
|
|
strategy: |
|
|
strategy: |
|
|
matrix: |
|
|
matrix: |
|
|
os: [self-hosted] |
|
|
os: [windows-latest] |
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
- name: Checkout git repo |
|
|
- name: Checkout git repo |
|
@ -35,17 +35,48 @@ jobs: |
|
|
restore-keys: | |
|
|
restore-keys: | |
|
|
${{ runner.os }}-yarn- |
|
|
${{ runner.os }}-yarn- |
|
|
|
|
|
|
|
|
- name: Install dependencies |
|
|
- name: Install `src/` dependencies |
|
|
run: | |
|
|
uses: nick-invision/retry@v2.4.0 |
|
|
yarn install --prefer-offline |
|
|
with: |
|
|
|
|
|
timeout_minutes: 30 |
|
|
|
|
|
max_attempts: 3 |
|
|
|
|
|
retry_on: error |
|
|
|
|
|
command: | |
|
|
|
|
|
cd src && yarn --frozen-lockfile --ignore-scripts --network-concurrency 1 --network-timeout 300000 |
|
|
|
|
|
on_retry_command: npm cache clean --force && yarn cache clean --all |
|
|
|
|
|
shell: cmd |
|
|
|
|
|
|
|
|
- name: Install dependencies |
|
|
- name: Install dependencies |
|
|
run: | |
|
|
uses: nick-invision/retry@v2.4.0 |
|
|
yarn install |
|
|
with: |
|
|
|
|
|
timeout_minutes: 30 |
|
|
|
|
|
max_attempts: 3 |
|
|
|
|
|
retry_on: error |
|
|
|
|
|
command: | |
|
|
|
|
|
yarn install --frozen-lockfile --ignore-scripts --prefer-offline --network-concurrency 1 --network-timeout 300000 |
|
|
|
|
|
on_retry_command: npm cache clean --force && yarn cache clean --all |
|
|
|
|
|
shell: cmd |
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies with scripts |
|
|
|
|
|
uses: nick-invision/retry@v2.4.0 |
|
|
|
|
|
with: |
|
|
|
|
|
timeout_minutes: 30 |
|
|
|
|
|
max_attempts: 3 |
|
|
|
|
|
retry_on: error |
|
|
|
|
|
command: | |
|
|
|
|
|
yarn install --frozen-lockfile --prefer-offline --network-concurrency 1 --network-timeout 300000 |
|
|
|
|
|
on_retry_command: npm cache clean --force && yarn cache clean --all |
|
|
|
|
|
shell: cmd |
|
|
|
|
|
|
|
|
- name: Publish releases |
|
|
- name: Publish releases |
|
|
env: |
|
|
env: |
|
|
# This is used for uploading release assets to github |
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.PAT }} |
|
|
GITHUB_TOKEN: ${{ secrets.PAT }} |
|
|
run: | |
|
|
uses: nick-invision/retry@v2.4.0 |
|
|
|
|
|
with: |
|
|
|
|
|
timeout_minutes: 30 |
|
|
|
|
|
max_attempts: 3 |
|
|
|
|
|
retry_on: error |
|
|
|
|
|
command: | |
|
|
yarn postinstall && yarn build && yarn electron-builder --publish always --win |
|
|
yarn postinstall && yarn build && yarn electron-builder --publish always --win |
|
|
|
|
|
on_retry_command: npm cache clean --force && yarn cache clean --all |
|
|
|
|
|
shell: cmd |
|
|