From 1dc71e0e28d729039d839e3241badfa61d64bbf7 Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Thu, 7 Mar 2024 20:25:29 +0300 Subject: [PATCH] CI: Build website --- .github/workflows/release.yml | 16 ++++++++++++++++ .github/workflows/testing.yml | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a7bbc1708..31cd77717 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,3 +89,19 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: skip-existing: true + + - name: Build Website (Dev) + if: ${{ needs.check-semver-tag.outputs.publish_on == 'testpypi' }} + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT_PLOTNINE_WEBSITE }} + repository: has2k1/plotnine.org + event-type: plotnine-pre-release + + - name: Build Website + if: ${{ needs.check-semver-tag.outputs.publish_on == 'pypi' }} + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT_PLOTNINE_WEBSITE }} + repository: has2k1/plotnine.org + event-type: plotnine-release diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ccbe95c60..2164a69e0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -150,3 +150,18 @@ jobs: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository uses: ./.github/workflows/documentation.yml + + build-website: + # Requires all the previous jobs to pass + needs: [unittests, lint-and-format, typecheck, call-build-documentation] + if: | + github.event_name == 'push' && + github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + steps: + - name: Build Website (Dev) + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT_PLOTNINE_WEBSITE }} + repository: has2k1/plotnine.org + event-type: push-plotnine-main