Skip to content

Draft: Prepare files for change of main branch name #1119

Draft: Prepare files for change of main branch name

Draft: Prepare files for change of main branch name #1119

Workflow file for this run

# Cloned from https://github.com/TileDB-Inc/tiledb-quarto-template
name: Render and deploy Quarto files
on:
push:
# publish on merge only
branches: main
# when changes match any path below
paths:
- '.github/workflows/quarto-render.yml'
- '_quarto.yml'
- 'quarto-materials/*'
- '**/.md'
- 'doc/source/conf.py'
- 'tiledb/sm/c_api/tiledb_version.h'
pull_request:
paths:
- '.github/workflows/quarto-render.yml'
- '_quarto.yml'
- 'quarto-materials/*'
- '**/.md'
- 'doc/source/conf.py'
- 'tiledb/sm/c_api/tiledb_version.h'
jobs:
quarto-render-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
# Check render-ability for all PRs
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
with:
to: html # If set, it will be equivalent to `quarto render --to html`
# Only publish merges to dev
- name: Publish to GitHub Pages
if: github.ref == 'refs/heads/dev'
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions