Skip to content

Commit

Permalink
modify publish-docs github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bkp7 committed Nov 19, 2023
1 parent bf490f8 commit 473cb7e
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,33 @@ on:
push:

jobs:
build:

build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write

steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm run docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Documentation
uses: actions/upload-pages-artifact@v1
- uses: actions/upload-pages-artifact@v1
with:
name: docs
path: ./docs
- name: Deploy Documentation to github Pages

deploy:
needs: build

runs-on: ubuntu-latest
permissions:
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@v2

0 comments on commit 473cb7e

Please sign in to comment.