Skip to content

Commit

Permalink
feat: deploy docs on gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
grikomsn committed Jul 31, 2023
1 parent 0120d27 commit be11edb
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: deploy docs

on:
push:
branches:
- dev
workflow_dispatch:

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

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- uses: pnpm/action-setup@v2
with:
version: 8
- run: |
pnpm install
pnpm --filter @project/docs run build
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: ./docs/build/
- id: deployment
uses: actions/deploy-pages@v2

0 comments on commit be11edb

Please sign in to comment.