Publish Linux (Manual) #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 18 | |
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 | |
- name: Publish releases (arm64) | |
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 --arm64 | |
on_retry_command: npm cache clean --force |