Spaces:
Sleeping
Sleeping
Download .github/workflows/docs.yml from yuyutsu07/Tweet-Wayback: direct link, hf CLI and curl.
- Browser
- Download file 860 Bytes
-
https://huggingface.co/spaces/yuyutsu07/Tweet-Wayback/resolve/main/.github/workflows/docs.yml
- Command line
-
hf download hf://spaces/yuyutsu07/Tweet-Wayback/.github/workflows/docs.yml
-
curl -L -o docs.yml https://huggingface.co/spaces/yuyutsu07/Tweet-Wayback/resolve/main/.github/workflows/docs.yml
860 Bytes
| name: docs | |
| on: [push, pull_request, workflow_dispatch] | |
| permissions: | |
| contents: write | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Install Poetry | |
| run: | | |
| curl -sSL https://install.python-poetry.org | python3 - | |
| - name: Install dependencies | |
| run: | | |
| poetry install | |
| - name: Sphinx build | |
| run: | | |
| mkdir gh-pages | |
| touch gh-pages/.nojekyll | |
| cd docs/ | |
| poetry run sphinx-build -b html . _build | |
| cp -r _build/* ../gh-pages/ | |
| - name: Deploy documentation | |
| if: ${{ github.event_name == 'push' }} | |
| uses: JamesIves/github-pages-deploy-action@4.1.4 | |
| with: | |
| branch: gh-pages | |
| folder: gh-pages | |