Skip to content

Commit

Permalink
CI: Build website
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Mar 7, 2024
1 parent 190abb3 commit 1dc71e0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1dc71e0

Please sign in to comment.