Reverse workflow changes

This commit is contained in:
jeffvli 2024-01-14 08:32:33 -08:00
parent 21cd657f0c
commit 2f28cb07bc
5 changed files with 3 additions and 79 deletions

View file

@ -1,35 +0,0 @@
name: Publish Linux Release (Manual)
on: workflow_dispatch
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
arch: ['--linux', '--arm64']
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: Electron Builder Action
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
max_attempts: 3
build_script_name: 'build'
release: true
args: ${{ matrix.arch }}

View file

@ -1,4 +1,4 @@
name: Publish Linux Draft (Manual) name: Publish Linux (Manual)
on: workflow_dispatch on: workflow_dispatch

View file

@ -1,40 +0,0 @@
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

View file

@ -1,4 +1,4 @@
name: Publish Windows and macOS Draft (Manual) name: Publish Windows and macOS (Manual)
on: workflow_dispatch on: workflow_dispatch

View file

@ -145,8 +145,7 @@
"publish": { "publish": {
"provider": "github", "provider": "github",
"owner": "jeffvli", "owner": "jeffvli",
"repo": "feishin", "repo": "feishin"
"releaseType": "release"
} }
}, },
"repository": { "repository": {