docs #13
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: docs | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install dependencies | |
| run: pip install .[dev] | |
| - name: Congifure git | |
| run: | | |
| git config user.name "Github Actions" | |
| git config user.email [email protected] | |
| git fetch origin gh-pages --depth=1 | |
| - name: Build docs | |
| run: mike deploy --push --update-aliases ${{ github.ref_name }} latest |