Skip to content

Commit

Permalink
Add deployment for gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mad-Kat committed Feb 6, 2024
1 parent 81cadc0 commit f3d5971
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: docs

on:
push:
branches:
- main
paths:
- "packages/docs/**"
- ".github/workflows/docs.yml"

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: lts
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
working-directory: ./packages/docs
run: npm ci
- name: Build docs
working-directory: ./packages/docs
run: npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/docs/docs/dist

0 comments on commit f3d5971

Please sign in to comment.