-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Github Actions workflow to facilitate docs deployment (#47)
- Loading branch information
1 parent
aa6d387
commit aa72f5d
Showing
2 changed files
with
58 additions
and
48 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,35 @@ | ||
name: Deploy Docs | ||
|
||
# Trigger manually via Github Actions UI for now, on release later | ||
on: ["workflow_dispatch", "workflow_call"] | ||
|
||
jobs: | ||
build_and_deploy_docs: | ||
runs-on: ubuntu-22.04 | ||
permissions: write-all | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20 | ||
- name: Install Eole | ||
run: pip install -e . | ||
- name: Install pandoc (bibtex to markdown) | ||
run: | | ||
wget https://github.com/jgm/pandoc/releases/download/3.2.1/pandoc-3.2.1-1-amd64.deb; | ||
sudo dpkg -i pandoc-3.2.1-1-amd64.deb | ||
- name: Install docusaurus and deps | ||
run: | | ||
cd docs/docusaurus_tsx && npm install | ||
- name: Build docs | ||
run: | | ||
cd docs && pip install -r requirements.txt && ./build_docs.sh | ||
- name: Deploy to Github Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs/docusaurus_tsx/build | ||
branch: gh-pages-docs | ||
clean: true | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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