2023-03-31 15:14:14 +02:00
|
|
|
name: Publish Linux (Manual)
|
2022-12-20 00:59:14 +01:00
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-03-31 15:14:14 +02:00
|
|
|
os: [ubuntu-latest]
|
2022-12-20 00:59:14 +01:00
|
|
|
|
|
|
|
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
|
2023-03-31 15:14:14 +02:00
|
|
|
npm exec electron-builder -- --publish always --linux
|
2022-12-20 00:59:14 +01:00
|
|
|
on_retry_command: npm cache clean --force
|