feishin/.github/workflows/publish-macos.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2024-01-14 17:32:33 +01:00
name: Publish Windows and macOS (Manual)
2022-12-20 00:59:14 +01:00
on: workflow_dispatch
jobs:
2023-07-02 04:10:05 +02:00
publish:
runs-on: ${{ matrix.os }}
2022-12-20 00:59:14 +01:00
2023-07-02 04:10:05 +02:00
strategy:
matrix:
os: [macos-latest]
2022-12-20 00:59:14 +01:00
2023-07-02 04:10:05 +02:00
steps:
- name: Checkout git repo
uses: actions/checkout@v1
2022-12-20 00:59:14 +01:00
2023-07-02 04:10:05 +02:00
- name: Install Node and NPM
uses: actions/setup-node@v1
with:
node-version: 16
cache: npm
2022-12-20 00:59:14 +01:00
2023-07-02 04:10:05 +02:00
- name: Install dependencies
run: |
npm install --legacy-peer-deps
2022-12-20 00:59:14 +01:00
2023-07-02 04:10:05 +02:00
- 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 --win --mac
on_retry_command: npm cache clean --force