Split linux build to ubuntu runner (#57)
This commit is contained in:
parent
fa717b9bca
commit
cf4f80c82b
2 changed files with 41 additions and 2 deletions
39
.github/workflows/publish-linux.yml
vendored
Normal file
39
.github/workflows/publish-linux.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: Publish Linux (Manual)
|
||||||
|
|
||||||
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout git repo
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Install Node and NPM
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
cache: npm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm install --legacy-peer-deps
|
||||||
|
|
||||||
|
- name: Publish releases
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
uses: nick-invision/retry@v2.8.2
|
||||||
|
with:
|
||||||
|
timeout_minutes: 30
|
||||||
|
max_attempts: 3
|
||||||
|
retry_on: error
|
||||||
|
command: |
|
||||||
|
npm run postinstall
|
||||||
|
npm run build
|
||||||
|
npm exec electron-builder -- --publish always --linux
|
||||||
|
on_retry_command: npm cache clean --force
|
|
@ -1,4 +1,4 @@
|
||||||
name: Publish (Manual)
|
name: Publish Windows and macOS (Manual)
|
||||||
|
|
||||||
on: workflow_dispatch
|
on: workflow_dispatch
|
||||||
|
|
||||||
|
@ -35,5 +35,5 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
npm run postinstall
|
npm run postinstall
|
||||||
npm run build
|
npm run build
|
||||||
npm exec electron-builder -- --publish always --win --mac --linux
|
npm exec electron-builder -- --publish always --win --mac
|
||||||
on_retry_command: npm cache clean --force
|
on_retry_command: npm cache clean --force
|
Reference in a new issue