mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update build script
This commit is contained in:
1 parent
87123659aa
commit
67cb68a9c0
1 file changed
+4
-18
@@ -12,25 +12,11 @@ jobs:
|
|||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '13.x'
|
node-version: '13.x'
|
||||||
- run: cd ui && yarn && yarn build:production && cd ..
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: uibuild
|
|
||||||
path: public
|
|
||||||
- run: |
|
- run: |
|
||||||
yarn
|
yarn
|
||||||
yarn build:production
|
yarn build
|
||||||
|
rm -rf node_modules
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: app.js
|
name: hydro
|
||||||
path: .build/app.js
|
path: .
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: builtin.hydro
|
|
||||||
path: .build/builtin.hydro
|
|
||||||
- uses: elgohr/Publish-Docker-Github-Action@master
|
|
||||||
with:
|
|
||||||
name: hydrooj/hydro:alpine
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
Reference in new issue
Block a user