-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add workflow action to build website.
- Loading branch information
1 parent
bfc1de4
commit cb4cb50
Showing
26 changed files
with
42 additions
and
1,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.