From 67cb68a9c07391e454fa431fd3cae939c076f9d7 Mon Sep 17 00:00:00 2001 From: undefined Date: Sun, 19 Jul 2020 13:34:50 +0800 Subject: [PATCH] update build script --- .github/workflows/build.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 982917550..466473929 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,25 +12,11 @@ jobs: - uses: actions/setup-node@v1 with: node-version: '13.x' - - run: cd ui && yarn && yarn build:production && cd .. - - uses: actions/upload-artifact@v1 - with: - name: uibuild - path: public - run: | yarn - yarn build:production + yarn build + rm -rf node_modules - uses: actions/upload-artifact@v1 with: - name: app.js - path: .build/app.js - - 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 + name: hydro + path: . \ No newline at end of file