diff --git a/.github/workflows/build_job.yml b/.github/workflows/build_job.yml index 74bf5518..2197324b 100644 --- a/.github/workflows/build_job.yml +++ b/.github/workflows/build_job.yml @@ -100,7 +100,7 @@ jobs: bump-databrowser-version: runs-on: ubuntu-latest - needs: build-and-push-image + needs: [build-and-push-image, docs] permissions: contents: read packages: write @@ -130,4 +130,36 @@ jobs: - name: Do the release job run: python3 bump.py deploy databrowser -b versions -v env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{secrets.G docs: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.11" + - name: Set up services + run: | + docker-compose -f dev-env/docker-compose.yaml up -d --remove-orphans + - name: Install dependencies + run: | + python3 -m pip install tox + - name: Creating docs + run: tox -e docs + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + # Upload entire repository + path: './docs/build/html' + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/build/html diff --git a/.github/workflows/ci_job.yml b/.github/workflows/ci_job.yml index 09ef918e..57e18de7 100644 --- a/.github/workflows/ci_job.yml +++ b/.github/workflows/ci_job.yml @@ -69,7 +69,7 @@ jobs: dependabot: name: Merge PR by dependabot runs-on: ubuntu-latest - needs: [ci, docs, build-docker-image] + needs: [ci, build-docker-image] if: github.event.pull_request.user.login == 'dependabot[bot]' steps: - name: Dependabot metadata