From 35c1a1cfb0b6ca171e73e9be1aa56d7cd9c77035 Mon Sep 17 00:00:00 2001 From: QianChenglong Date: Wed, 18 Mar 2020 12:10:29 +0800 Subject: [PATCH] ci: modify build-web.yml --- .github/workflows/build-web.yml | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index cdb3be6b1..6225d29b3 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -5,7 +5,7 @@ on: branches: - master paths: - - 'web/*' + - 'web/**' jobs: build: @@ -13,15 +13,22 @@ jobs: runs-on: self-hosted steps: - - uses: actions/checkout@v2 - - - run: | - make web - make assets - - - name: Commit web - run: | - git config --global user.name 'QianChenglong' - git config --global user.email 'qian_cheng_long@163.com' - git commit -am 'build: web' - git push \ No newline at end of file + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '13.x' + + - run: npm install + + - run: | + make web + make asset + + - name: Commit web + run: | + git config --global user.name 'QianChenglong' + git config --global user.email 'qian_cheng_long@163.com' + git commit -am 'ci: build web' + git push \ No newline at end of file