Skip to content

Render and deploy Book to Netlify #15

Render and deploy Book to Netlify

Render and deploy Book to Netlify #15

Workflow file for this run

on:
push:
branches:
- traducao-pt-2ed
# pull_request:
# branches: main
# to be able to trigger a manual build
workflow_dispatch:
# schedule:
# # run every day at 11 PM
# - cron: '0 23 * * *'
name: Render and deploy Book to Netlify
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
ref: traducao-pt-2ed
- name: Install Quarto
uses: quarto-dev/quarto-actions/install-quarto@v1
with:
# To install LaTeX to build PDF book
tinytex: true
# uncomment below and fill to pin a version
# version: 0.9.105
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- name: Render book to all format
# Add any command line argument needed
run: |
quarto render
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
render: false
target: gh-pages
path: "_book/"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions