Skip to content

Commit

Permalink
ci: modify build-web.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
QianChenglong committed Mar 18, 2020
1 parent ab59f5f commit 35c1a1c
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,30 @@ on:
branches:
- master
paths:
- 'web/*'
- 'web/**'

jobs:
build:

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 '[email protected]'
git commit -am 'build: web'
git push
- 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 '[email protected]'
git commit -am 'ci: build web'
git push

0 comments on commit 35c1a1c

Please sign in to comment.