change from cd to working-directory
This commit is contained in:
parent
1b89cb8f37
commit
126a708323
7
.github/workflows/cd.yml
vendored
7
.github/workflows/cd.yml
vendored
@ -15,22 +15,23 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
|
||||||
- name: Switch folder
|
|
||||||
run: cd nuxt
|
|
||||||
|
|
||||||
- name: Setup node env
|
- name: Setup node env
|
||||||
uses: actions/setup-node@v2.1.2
|
uses: actions/setup-node@v2.1.2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
working-directory: ./nuxt
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: yarn
|
||||||
|
working-directory: ./nuxt
|
||||||
|
|
||||||
- name: Generate
|
- name: Generate
|
||||||
run: yarn run generate
|
run: yarn run generate
|
||||||
|
working-directory: ./nuxt
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./dist
|
publish_dir: ./dist
|
||||||
|
working-directory: ./nuxt
|
Loading…
Reference in New Issue
Block a user