Add release publish builds
This commit is contained in:
parent
e7c665b0a0
commit
925b1b4f68
4 changed files with 97 additions and 2 deletions
55
.github/workflows/publish-linux-release.yml
vendored
Normal file
55
.github/workflows/publish-linux-release.yml
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
name: Publish Linux Release (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 }}
|
||||
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 --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
|
2
.github/workflows/publish-linux.yml
vendored
2
.github/workflows/publish-linux.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Publish Linux (Manual)
|
||||
name: Publish Linux Draft (Manual)
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
|
|
40
.github/workflows/publish-macos-release.yml
vendored
Normal file
40
.github/workflows/publish-macos-release.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: Publish Windows and macOS Release (Manual)
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-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 }}
|
||||
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 --win --mac
|
||||
on_retry_command: npm cache clean --force
|
2
.github/workflows/publish-macos.yml
vendored
2
.github/workflows/publish-macos.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Publish Windows and macOS (Manual)
|
||||
name: Publish Windows and macOS Draft (Manual)
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
|
|
Reference in a new issue