From ca2323bef08b370a0047ac8a615c03a688afa450 Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 12 Dec 2024 15:48:19 -0500 Subject: [PATCH] move docs to rtd --- .github/workflows/docs.yml | 80 -------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 3ae6c3b..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Build Documentation - -on: - push: - branches: ["main"] - paths: ["docs/**.rst"] - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - python-version: ["3.9"] - os: [ubuntu-latest] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install -r docs/requirements.txt - python -m pip install -e . - - - name: Compile Docs - run: | - cd docs; make clean; make html; cd .. - - - name: Fix permissions if needed - run: | - chmod -c -R +rX "docs/_build/html/" | while read line; do - echo "::warning title=Invalid file permissions automatically fixed::$line" - done - - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: 'docs/_build/html' - - deploy: - name: Deploy docs to GitHub Pages - needs: build - # Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages - permissions: - contents: read - pages: write - id-token: write - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - - steps: - - name: Setup Pages - uses: actions/configure-pages@v3 - - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2