Skip to content

Commit

Permalink
[nl]Update build-app.yml
Browse files Browse the repository at this point in the history
💚 [build-electron]
💚 [not-build-web]
  • Loading branch information
Stapxs committed Jun 3, 2024
1 parent 46a3c37 commit 3010864
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
echo VERSION=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
# 设置 Node.js 版本
- name: Load Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
# 更新依赖
Expand All @@ -64,13 +64,13 @@ jobs:
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
# 设置 Node.js 版本
- name: Load Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
# 更新依赖
Expand Down Expand Up @@ -107,13 +107,13 @@ jobs:

# 拉取代码
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
# 设置 Node.js 版本
- name: Load Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
# 更新依赖
Expand All @@ -137,27 +137,30 @@ jobs:

# 上传构建结果
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ needs.init.outputs.version }}
name: ${{ needs.init.outputs.version }}-${{ matrix.os }}
path: dist_electron/out

# ========================= 发布构建结果 =========================
release:
name: 发布构建结果
runs-on: ubuntu-latest
needs: build-electron

steps:
# 下载构建结果
- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: ${{ needs.build-electron.outputs.version }}
pattern: ${{ needs.build-electron.outputs.version }}-*
merge-multiple: true
- name: Artifacts List
run: ls -R
# 发布构建结果
- name: Publish Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ./${{ needs.build-electron.outputs.version }}/*
tag_name: v${{ needs.build-electron.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion src/function/msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import qed from '@/assets/qed.txt'

import app from '@/main'
import Option, { run } from './option'
import Option from './option'
import xss from 'xss'
import pinyin from 'pinyin'

Expand Down

0 comments on commit 3010864

Please sign in to comment.