Remove double output from HoloViews 1.20 post (#79) #237
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs | |
on: | |
# To build the dev site on every PR targetting main | |
pull_request: | |
branches: | |
- "main" | |
# To build the main site when pushing to main | |
push: | |
branches: | |
- "main" | |
# To build the docs on demand | |
workflow_dispatch: | |
inputs: | |
target: | |
description: 'Site to build and deploy' | |
type: choice | |
options: | |
- dev | |
- main | |
- dryrun | |
required: true | |
default: dryrun | |
# Weekly dry runs | |
schedule: | |
- cron: '0 19 * * SUN' | |
jobs: | |
pre_commit: | |
name: Run pre-commit | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: holoviz-dev/holoviz_tasks/pre-commit@v0.1a19 | |
- uses: pre-commit/action@v3.0.0 | |
with: | |
extra_args: -a --hook-stage manual oxipng || true -- | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Optimize PNG images (lossless)" | |
file_pattern: "*.png" | |
build_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: build docs | |
run: quarto render | |
- name: Deploy dev | |
if: | | |
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'dev') || | |
(github.event_name == 'pull_request') | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.ACCESS_TOKEN }} | |
external_repository: holoviz-dev/blog-dev | |
publish_dir: ./builtdocs | |
force_orphan: true | |
- name: Deploy main | |
if: | | |
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'main') || | |
(github.event_name == 'push') | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./builtdocs | |
cname: blog.holoviz.org | |
force_orphan: true |