mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 03:37:38 +00:00
Attempt to fix handbook actions
clearly running cd prior to setting up node doesnt work
This commit is contained in:
parent
12898f6228
commit
314c8771da
7
.github/workflows/handbook.yml
vendored
7
.github/workflows/handbook.yml
vendored
@ -36,8 +36,10 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
working-directory: src/handbook
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
|
working-directory: src/handbook
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
|
|
||||||
- run: git config --global user.name "github-actions"
|
- run: git config --global user.name "github-actions"
|
||||||
@ -54,7 +56,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- run: cd src/handbook
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
@ -69,9 +70,11 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
working-directory: src/handbook
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Build handbook
|
- name: Build handbook
|
||||||
run: npm run build
|
working-directory: src/handbook
|
||||||
|
run: cd src/handbook && npm run build
|
||||||
- name: Upload build
|
- name: Upload build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user