Skip to content

Commit

Permalink
Add working-directory
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Poignant <[email protected]>
  • Loading branch information
thomaspoignant committed Oct 27, 2022
1 parent 35ef4c4 commit 72f0dc7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'docs'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
Expand All @@ -19,9 +22,9 @@ jobs:
cache: npm

- name: Install dependencies
run: cd docs && npm install
run: npm install
- name: Build website
run: cd docs && npm run build
run: npm run build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
Expand All @@ -30,4 +33,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./docs/build
publish_dir: ./build

0 comments on commit 72f0dc7

Please sign in to comment.