chore: update github workflow

pull/49/head
moonrailgun 3 years ago
parent b9d78eaa96
commit aac8feb031

@ -5,7 +5,7 @@ on:
branches: branches:
- master - master
paths: paths:
- "./website/**" - "website/**"
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -19,25 +19,25 @@ jobs:
working-directory: website working-directory: website
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }} # - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 # uses: actions/setup-node@v1
with: # with:
node-version: ${{ matrix.node-version }} # node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules # - name: Cache pnpm modules
uses: actions/cache@v2 # uses: actions/cache@v2
with: # with:
path: ~/.pnpm-store # path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} # key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: | # restore-keys: |
${{ runner.os }}- # ${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1 # - uses: pnpm/action-setup@v2.0.1
with: # with:
version: 7.1.9 # version: 7.1.9
run_install: true # run_install: true
- name: Install Packages # - name: Install Packages
run: pnpm install # run: pnpm install
- name: Build page # - name: Build page
run: pnpm build # run: pnpm build
# - name: Deploy to gh-pages # - name: Deploy to gh-pages
# uses: peaceiris/actions-gh-pages@v3 # uses: peaceiris/actions-gh-pages@v3
# with: # with:

@ -5,9 +5,9 @@ on:
branches: branches:
- master - master
paths: paths:
- "./client/web/**" - "client/web/**"
- "./client/shared/**" - "client/shared/**"
- "./client/packages/design/**" - "client/packages/design/**"
workflow_dispatch: workflow_dispatch:
jobs: jobs:

Loading…
Cancel
Save