Skip to content

Commit

Permalink
ci: add windows program
Browse files Browse the repository at this point in the history
  • Loading branch information
alongw committed Nov 11, 2024
1 parent d6df250 commit c6da2fb
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,23 @@ jobs:
yarn
yarn build
cd ..
cp -r ./web/dist/* ./service/dist/public/
- name: Generate final file
run: |
cp -r ./service/dist ./final/
cp -r ./web/dist/* ./final/public/
cd ./final
wget https://nodejs.org/dist/v20.17.0/win-x64/node.exe -O ./node.exe
echo "./node.exe ./app.js" > start.bat
iconv -f utf-8 -t gbk start.bat > start.bat.tmp
mv start.bat.tmp start.bat
cd ..
- name: Upload final artifact
uses: actions/upload-artifact@v3
with:
name: final_artifact
path: ./final

- name: upload service
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit c6da2fb

Please sign in to comment.