Skip to content

Commit

Permalink
fix build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alerighi committed Jan 10, 2024
1 parent e5687cd commit 27be28e
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,10 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs:
name: Build and publish documentation on GitHub pages
build-docs:
name: Build documentation
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -103,6 +94,22 @@ jobs:
with:
path: docs/

docs:
needs: build-docs

name: Publish documentation on GitHub pages
runs-on: ubuntu-latest

permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 27be28e

Please sign in to comment.