chore: workflow
This commit is contained in:
51
.github/workflows/windows.release.yml
vendored
Normal file
51
.github/workflows/windows.release.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Desktop Windows Sign & Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
Windows:
|
||||
runs-on: self-hosted
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn install
|
||||
- run: yarn build:web:all
|
||||
- run: yarn run webpack --config desktop.webpack.prod.js
|
||||
- run: yarn run electron-builder --windows --x64 --ia32 --publish=never
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
name: assets
|
||||
path: |
|
||||
packages/desktop/dist/*.blockmap
|
||||
packages/desktop/dist/*.exe
|
||||
packages/desktop/dist/*.yml
|
||||
packages/desktop/dist/*.yaml
|
||||
|
||||
Publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [Windows]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: packages/desktop
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: assets
|
||||
path: packages/desktop/dist
|
||||
- name: get-npm-version
|
||||
id: package-version
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
with:
|
||||
path: packages/desktop
|
||||
Reference in New Issue
Block a user