Skip to content

Commit

Permalink
Add github workflow to publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemonteith committed Apr 15, 2024
1 parent 76da447 commit fb08304
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Docs

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build:docs
- uses: actions/upload-pages-artifact@v3
with:
path: 'dist/docs'
if-no-files-found: error
deploy:
needs: build

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

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Empty file added src/assets/.gitkeep
Empty file.

0 comments on commit fb08304

Please sign in to comment.