Merge pull request #65 from hyperwallet/ghas #25
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: Update Documentation | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| documentation: | |
| runs-on: ubuntu-latest | |
| name: Documentation | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| [ | |
| '3.10' | |
| ] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install tools | |
| run: make build | |
| - name: Clean | |
| run: make dev | |
| - name: Generate Documentation | |
| run: make docs | |
| - name: Push | |
| uses: s0/git-publish-subdir-action@develop | |
| env: | |
| REPO: self | |
| BRANCH: gh-pages | |
| FOLDER: doc/_build/html | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| MESSAGE: "Documentation updated" |