mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-01-08 12:07:45 +08:00
build action
This commit is contained in:
parent
c0770606ae
commit
6750787bf9
45
.github/workflows/build.yml
vendored
Normal file
45
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
name: Check frontend
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '**.lock'
|
||||
- '**.rs'
|
||||
- '**.toml'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.lock'
|
||||
- '**.rs'
|
||||
- '**.toml'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.ref }}-${{ github.workflow }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v1
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
|
||||
- name: Install deps and build
|
||||
run: yarn && yarn build --debug
|
||||
|
||||
- name: Compress build
|
||||
uses: vimtor/action-zip@v1
|
||||
with:
|
||||
files: src-tauri/target/debug/Cultivation.exe src-tauri/target/debug/lang/ src-tauri/target/debug/keys/
|
||||
recursive: true
|
||||
dest: Cultivation.zip
|
||||
|
||||
- name: Upload build
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Cultivation
|
Loading…
Reference in New Issue
Block a user