-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ddcf56
commit 4f15fb7
Showing
1 changed file
with
24 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 |
---|---|---|
|
@@ -12,7 +12,31 @@ jobs: | |
goos: [linux, windows] # 需要打包的系统 | ||
goarch: [amd64, arm64] # 需要打包的架构 | ||
steps: | ||
- name: Node Setup | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: latest | ||
|
||
- name: Pnpm Setup | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: build front src | ||
run: | | ||
git clone https://github.com/jinzhongjia/newMovie.git --depth=1 src/front | ||
cd src/front;pnpm install;pnpm build | ||
cd .. | ||
cd .. | ||
cp -r src/front/dist/ dist/front | ||
git clone https://github.com/jinzhongjia/newMovieAdmin.git --depth=1 src/admin | ||
cd src/admin;pnpm install;pnpm build | ||
cd .. | ||
cd .. | ||
cp -r src/admin/dist/ dist/admin | ||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} # 一个默认的变量,用来实现往 Release 中添加文件 | ||
|