Skip to content

Commit

Permalink
Merge pull request #1 from mexes20/gh-pages
Browse files Browse the repository at this point in the history
docs: publish to Github Pages
  • Loading branch information
mexes20 authored Oct 4, 2024
2 parents 0a9c307 + 995be80 commit 03fd46b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Deploy Documentation

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04

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

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: yarn install

- name: Build docs
run: yarn build

# Github Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist

0 comments on commit 03fd46b

Please sign in to comment.