This repository has been archived by the owner on Aug 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from Project-And-Factory/gozaoo-patch-1
Add files via upload
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
name: AutoBuild2 | ||
|
||
on: | ||
push: | ||
branches: | ||
- beta_3 | ||
paths-ignore: | ||
- "README.md" | ||
- "README_CN.md" | ||
- ".github/workflows/**" | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node-version: [18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: '使用 Node.js ${{ matrix.node-version }}' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- name: '安装依赖' | ||
run: npm install | ||
|
||
- name: '构建静态文件和可执行文件' | ||
run: npm run tauri build | ||
|
||
#- name: '清理没必要打包的文件(1/2)' | ||
#run: Remove-Item -force .\src\* | ||
#- name: '清理没必要打包的文件(2/2)' | ||
#run: Remove-Item -force .\blurlyric\* | ||
|
||
|
||
- name: '上传Ubuntu artifact' | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: blurlyric_ubuntu-${{ github.sha }}.deb | ||
path: / | ||
|
||
- name: '上传MacOS artifact' | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: blurlyric_macos-${{ github.sha }}.zip | ||
path: / | ||
|
||
- name: '上传Windows artifact' | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: blurlyric-win32-x64-${{ github.sha }}.zip | ||
path: / |