Merge commit '76570e2f1b72de50cb54c36229447eea69c59940' into pro

This commit is contained in:
kuaifan
2024-02-29 19:51:11 +08:00
14 changed files with 112 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
name: Publish Desktop
name: Publish Mac
on:
push:
@@ -6,7 +6,7 @@ on:
- 'v*'
jobs:
build:
Build:
runs-on: macos-latest
environment: build
@@ -29,5 +29,6 @@ jobs:
DP_KEY: ${{ secrets.DP_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPOSITORY: ${{ github.repository }}
run: ./cmd electron all
run: |
./cmd electron mac

View File

@@ -0,0 +1,30 @@
name: Publish Win
on:
push:
tags:
- 'v*'
jobs:
Build:
runs-on: windows-latest
environment: build
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Build
env:
DP_KEY: ${{ secrets.DP_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPOSITORY: ${{ github.repository }}
shell: bash
run: |
./cmd electron win