Skip to content

Commit f10fbfe

Browse files
committed
ci(docs): deploy main to GitHub Pages
1 parent 957d700 commit f10fbfe

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/docs-checks.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515

1616
permissions:
1717
contents: read
18+
pages: write
19+
id-token: write
20+
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
1824

1925
jobs:
2026
verify:
@@ -35,3 +41,21 @@ jobs:
3541
run: npm run build --prefix docs
3642
- name: Verify repository-owned documentation links
3743
run: npm run check:links --prefix docs
44+
- name: Upload GitHub Pages artifact
45+
if: github.ref == 'refs/heads/main'
46+
uses: actions/upload-pages-artifact@v3
47+
with:
48+
path: docs/build
49+
50+
deploy:
51+
name: Deploy documentation to GitHub Pages
52+
needs: verify
53+
if: github.ref == 'refs/heads/main'
54+
runs-on: ubuntu-latest
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
steps:
59+
- name: Deploy GitHub Pages artifact
60+
id: deployment
61+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)