Skip to content

Commit

Permalink
ci: Attempt to fix doc deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
grilme99 committed Mar 4, 2024
1 parent 76bcb2e commit 8f015d3
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,27 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: "latest"
cache: "yarn"
cache-dependency-path: "yarn.lock"

- name: Install packages
working-directory: docs
run: yarn install --immutable

- name: Install NPM dependencies
uses: bahmutov/[email protected]
with:
working-directory: docs

- name: Build
working-directory: docs
run: npm run build
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build
publish_branch: gh-pages
publish_branch: gh-pages

0 comments on commit 8f015d3

Please sign in to comment.