diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml deleted file mode 100644 index 59f24c0..0000000 --- a/.github/workflows/build_docs.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: website - -# build the documentation whenever there are new commits on main -on: - push: - branches: - - main - # Alternative: only build for tags. - # tags: - # - '*' - -# security: restrict permissions for CI jobs. -permissions: - contents: read - -jobs: - # Build the documentation and upload the static HTML files as an artifact. - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v5 - with: - enable-cache: true - cache-dependency-glob: "uv.lock" - - - name: "Set up Python" - uses: actions/setup-python@v5 - with: - python-version-file: "pyproject.toml" - - - name: Install the project - run: uv sync --all-extras --dev - - - name: Install the module - run: uv pip install . - - - name: build docs - run: uv run pdoc3 --html -o docs/ src/poldracklab - - - uses: actions/upload-pages-artifact@v3 - with: - path: docs/ - - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4