Merge pull request #221 from lewiszlw/patch-3 #270
  
    
      This file contains hidden or 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: Deploy | |
| on: | |
| push: | |
| branches: [main, dev] | |
| jobs: | |
| deploy-doc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: "true" | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: build doc | |
| run: | | |
| make html | |
| cp scripts/mermaid.js build/html/_static/ | |
| - name: create .nojekyll | |
| run: touch build/html/.nojekyll | |
| - name: Push to gh-pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build/html |