Skip to content

Commit

Permalink
[docs] Add workflow action to build website.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed Jun 25, 2023
1 parent bfc1de4 commit cb4cb50
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 1,382 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/generate-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: Generate Website

on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: site

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip build wheel virtualenv
pip install -r requirements.txt
- name: Generate Website
run: |
mkdocs build
- name: Update Website
run: |
git fetch origin gh-pages
git checkout gh-pages
git rm * -r --ignore-unmatch
git checkout HEAD -- .nojekyll
git checkout HEAD -- docs/
git add build/
git mv build/* . -f
git config --global user.name github-actions
git config --global user.email [email protected]
git commit -a -m "[docs] @${{ github.triggering_actor }}: Generate Website"
git push
13 changes: 0 additions & 13 deletions docs/.readthedocs.yaml

This file was deleted.

457 changes: 0 additions & 457 deletions docs/changelog.md

This file was deleted.

40 changes: 0 additions & 40 deletions docs/contributing.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/docs.md

This file was deleted.

76 changes: 0 additions & 76 deletions docs/download.md

This file was deleted.

67 changes: 0 additions & 67 deletions docs/examples/usage-example.md

This file was deleted.

Loading

0 comments on commit cb4cb50

Please sign in to comment.