Skip to content

Commit

Permalink
added documentation + deploy docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Aug 5, 2022
1 parent 3b06663 commit ce110e1
Show file tree
Hide file tree
Showing 13 changed files with 8,056 additions and 1,560 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docs

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install
run: npm ci

- name: Build
run: npm run docs:build

- name: CNAME
run: |
cd ./docs/.vitepress/dist/
touch CNAME
echo "hapiq.tada5hi.net" > CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vitepress/dist
Loading

0 comments on commit ce110e1

Please sign in to comment.