Skip to content

Commit 0508493

Browse files
Update and rename build-page.yaml to quarto-publish-example.yaml
1 parent 3c4322f commit 0508493

File tree

2 files changed

+82
-39
lines changed

2 files changed

+82
-39
lines changed

.github/workflows/build-page.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: Render and Publish
10+
11+
# you need these permissions to publish to GitHub pages
12+
permissions:
13+
contents: write
14+
pages: write
15+
16+
jobs:
17+
build-deploy:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Quarto
25+
uses: quarto-dev/quarto-actions/setup@v2
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
# To install LaTeX to build PDF book
30+
tinytex: true
31+
# uncomment below and fill to pin a version
32+
# version: SPECIFIC-QUARTO-VERSION-HERE
33+
34+
# add software dependencies here and any libraries
35+
36+
# From https://github.com/actions/setup-python
37+
# - name: Setup Python
38+
# uses: actions/setup-python@v3
39+
40+
# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
41+
# - name: Setup R
42+
# uses: r-lib/actions/setup-r@v2
43+
44+
# From https://github.com/julia-actions/setup-julia
45+
# - name: Setup Julia
46+
# uses: julia-actions/setup-julia@v1
47+
48+
# See more at https://github.com/quarto-dev/quarto-actions/blob/main/examples/example-03-dependencies.md
49+
50+
# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
51+
# the appropriate block below
52+
53+
# - name: Publish to Netlify (and render)
54+
# uses: quarto-dev/quarto-actions/publish@v2
55+
# with:
56+
# target: netlify
57+
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
58+
59+
# - name: Publish to RStudio Connect (and render)
60+
# uses: quarto-dev/quarto-actions/publish@v2
61+
# with:
62+
# target: connect
63+
# CONNECT_SERVER: enter-the-server-url-here
64+
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
65+
66+
# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
67+
# - name: Publish to GitHub Pages (and render)
68+
# uses: quarto-dev/quarto-actions/publish@v2
69+
# with:
70+
# target: gh-pages
71+
# env:
72+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
73+
74+
# - name: Publish to confluence
75+
# uses: quarto-dev/quarto-actions/publish@v2
76+
# with:
77+
# target: confluence
78+
# env:
79+
# CONFLUENCE_USER_EMAIL: ${{ secrets.CONFLUENCE_USER_EMAIL }}
80+
# CONFLUENCE_AUTH_TOKEN: ${{ secrets.CONFLUENCE_AUTH_TOKEN }}
81+
# CONFLUENCE_DOMAIN: ${{ secrets.CONFLUENCE_DOMAIN }}
82+

0 commit comments

Comments
 (0)