Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Nov 6, 2023
1 parent a4b80bc commit ea4a6b5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/guide-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: 18
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: ./apps/docs/package-lock.json
- name: Setup Pages
Expand All @@ -70,8 +70,8 @@ jobs:
uses: actions/cache@v3
with:
path: |
./apps/docs/public
./apps/docs/.cache
./websiite/dist
./websiite/.cache
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('public') }}
restore-keys: |
${{ runner.os }}-gatsby-build-
Expand All @@ -81,17 +81,18 @@ jobs:

- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
working-directory: ./apps/docs
working-directory: ./website

- name: Build with Gatsby
working-directory: ./apps/docs
- name: Build website
working-directory: ./website
env:
PREFIX_PATHS: 'true'
run: ${{ steps.detect-package-manager.outputs.manager }} run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./apps/docs/public
path: ./website/dist

# Deployment job
deploy:
Expand Down

0 comments on commit ea4a6b5

Please sign in to comment.