Test electron builder action
This commit is contained in:
parent
925b1b4f68
commit
1ef7968834
1 changed files with 7 additions and 27 deletions
34
.github/workflows/publish-linux-release.yml
vendored
34
.github/workflows/publish-linux-release.yml
vendored
|
@ -9,6 +9,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
arch: ['--linux', '--arm64']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
|
@ -24,32 +25,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
npm install --legacy-peer-deps
|
npm install --legacy-peer-deps
|
||||||
|
|
||||||
- name: Publish releases
|
- name: Electron Builder Action
|
||||||
env:
|
uses: samuelmeuli/action-electron-builder@v1
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
EP_RELEASE: true
|
|
||||||
uses: nick-invision/retry@v2.8.2
|
|
||||||
with:
|
with:
|
||||||
timeout_minutes: 30
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
retry_on: error
|
build_script_name: 'build'
|
||||||
command: |
|
release: true
|
||||||
npm run postinstall
|
args: ${{ matrix.arch }}
|
||||||
npm run build
|
|
||||||
npm exec electron-builder -- --publish always --linux
|
|
||||||
on_retry_command: npm cache clean --force
|
|
||||||
|
|
||||||
- name: Publish releases (arm64)
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
EP_RELEASE: true
|
|
||||||
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 --arm64
|
|
||||||
on_retry_command: npm cache clean --force
|
|
||||||
|
|
Reference in a new issue