You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: publish/README.md
+18-6Lines changed: 18 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
+
2
+
# Publishing with Quarto using GitHub Actions
3
+
4
+
This README complements the more detailed documentation on [Quarto's website](https://quarto.org/docs/publishing/).
5
+
1
6
## Netlify
2
7
8
+
> See also <https://quarto.org/docs/publishing/netlify.html> about Netlify publishing support in Quarto.
9
+
3
10
1. Create Netlify auth token. Go to Netlify's [applications page](https://app.netlify.com/user/applications), and click on "New Access Token" to create a new personal access token.
4
11
Give this token a memorable name, and note the resulting string (or keep this window open in a tab)
5
12
@@ -21,13 +28,16 @@ Give this token a memorable name, and note the resulting string (or keep this wi
21
28
22
29
## GitHub Pages
23
30
24
-
1. Add the GitHub Actions workflow to your project. (Use [quarto-publish-example.yml](../examples/quarto-publish-example.yml) as an example).
31
+
> See also <https://quarto.org/docs/publishing/github-pages.html> about Github Pages publishing support in Quarto.
32
+
> And <https://quarto.org/docs/publishing/github-pages.html#github-action> about using Github Actions to publish to Github Pages with Quarto.
25
33
26
-
2. Head over to your repository on GitHub. Under Settings > Pages > Build and deployment, under source, ensure **Deploy from a branch** is selected. Under the branch option, select the root of the gh-pagesbranch.
34
+
1. Quarto needs to configure the repository for publishing through GitHub Actions. To do this, run `quarto publish gh-pages` locally, once. This will create a new branch called `gh-pages` and push it to the remote repository, and configure the gh-pages branch to be the [publishing source for GitHub Pages](https://quarto.org/docs/publishing/github-pages.html#source-branch).
27
35
28
-
3. Run `quarto publish gh-pages` locally, once. Quarto needs to configure the repository for publishing through GitHub Actions. To do this, run `quarto publish gh-pages` locally.
36
+
2. Then you need to configure your repo to use Github Actions to publish, by adding GitHub Actions workflow to your project.
37
+
- Use [quarto-publish-example.yml](../examples/quarto-publish-example.yml) as an example
38
+
- Go over our documentation for additional details at <https://quarto.org/docs/publishing/github-pages.html#github-action>
29
39
30
-
4. Configure action to use gh-pages:
40
+
3. Configure Quarto publish action to use `gh-pages` as publishing target:
31
41
32
42
```yaml
33
43
- name: Publish to GitHub Pages (and render)
@@ -38,7 +48,7 @@ Give this token a memorable name, and note the resulting string (or keep this wi
38
48
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
39
49
```
40
50
41
-
5. Configure the minimum required access for the `publish` action to function (see also [quarto-publish-example.yml]()). Add these two lines below and on the same level of indentation as `runs-on:`:
51
+
4. Configure the minimum required access for the `publish` action to function (see also [quarto-publish-example.yml](../examples/quarto-publish-example.yml)). Add these two lines below and on the same level of indentation as `runs-on:`:
42
52
43
53
```yaml
44
54
permissions:
@@ -47,6 +57,8 @@ Give this token a memorable name, and note the resulting string (or keep this wi
47
57
48
58
## Posit Connect
49
59
60
+
> See also <https://quarto.org/docs/publishing/rstudio-connect.html> about Posit Connect publishing support in Quarto.
61
+
50
62
1. Create Posit Connect auth token. After logging in to your Posit Connect server, click on your username on the top right. A sidebar should slide in from the right. Click on "API keys". On the new page, click on the "New API Key" button. Give it a memorable name and note the resulting string (or keep this browser window open).
51
63
52
64
2. Add Posit Connect auth token to your GitHub repository. Go to the GitHub webpage for the repository that will be using this GitHub Action. Click on "Settings". On the new page, click on "Secrets", then on the dropdown "Actions". Now, on the right-hand tab, click on the "New repository secret" button to the right of the title "Actions secrets". For the "Name" field, use `CONNECT_API_KEY`, and for the "Value" field, paste the string you got from step 1.
@@ -66,7 +78,7 @@ Give this token a memorable name, and note the resulting string (or keep this wi
66
78
CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
67
79
```
68
80
69
-
## Other configurations
81
+
## Other configurations available for Quarto Publish action
70
82
71
83
The `with` parameter can also be set to configure the following
0 commit comments