From 72f0dc792f46a3cde4ccf36a152562dbf1c5dca1 Mon Sep 17 00:00:00 2001 From: Thomas Poignant Date: Thu, 27 Oct 2022 16:57:17 +0200 Subject: [PATCH] Add working-directory Signed-off-by: Thomas Poignant --- .github/workflows/doc.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 4dbd95e33bb..64912c549f5 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -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 @@ -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 @@ -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