update readme #6
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
name: Docs | |
on: | |
push: | |
branches: | |
- main | |
- docs | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Install Dependencies | |
run: | | |
wget "https://github.com/doxygen/doxygen/releases/download/Release_1_9_8/doxygen-1.9.8.linux.bin.tar.gz" | |
tar -xzf "doxygen-1.9.8.linux.bin.tar.gz" | |
cd "doxygen-1.9.8" | |
sudo make install | |
sudo apt-get install graphviz | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Generate Doxygen Documentation | |
run: doxygen Doxyfile | |
- name: Launch JSON Spec Documentation Runner | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.PAT_TOKEN }} | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'polyfem', | |
repo: 'polyfem.github.io', | |
workflow_id: 'build.yml', | |
ref: 'docs' | |
}) | |
- name: Create .nojekyll | |
run: touch docs/html/.nojekyll | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs/html | |
# - uses: DenverCoder1/[email protected] | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# branch: gh-pages | |
# folder: docs/html | |
# config_file: Doxyfile | |