Skip to content

Commit

Permalink
chore: Generate docs on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Apr 22, 2023
1 parent 41ac041 commit 81e4d52
Show file tree
Hide file tree
Showing 254 changed files with 51 additions and 36,666 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish Documentation

on:
push:
branches:
- main
workflow_dispatch:

permissions:
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: yarn

- name: Setup Pages
id: pages
uses: actions/configure-pages@v3

- run: yarn install --forzen-lockfiles
- run: yarn docs:build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs'

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ typings/
.env

/dist/*
.rpt2_cache
.rpt2_cache
/docs/*
1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

78 changes: 0 additions & 78 deletions docs/assets/highlight.css

This file was deleted.

54 changes: 0 additions & 54 deletions docs/assets/main.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/search.js

This file was deleted.

0 comments on commit 81e4d52

Please sign in to comment.