Skip to content

Commit

Permalink
Split build and deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shirish87 committed Jan 30, 2024
1 parent 31abcfe commit 4ff1c77
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,12 @@ on:


jobs:
deploy-docs:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read # to read the Pages artifact
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

build-docs:
runs-on: ubuntu-latest

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3
Expand All @@ -43,6 +36,23 @@ jobs:
with:
path: "docs/.vitepress/dist/"

deploy-docs:
needs: build-docs

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read # to read the Pages artifact
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

runs-on: ubuntu-latest

# Deploy to the github-pages environment
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 4ff1c77

Please sign in to comment.