Skip to content

Commit b6ab166

Browse files
committed
Add more details in the quarto-publish README
1 parent 60f4c5d commit b6ab166

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

publish/README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff 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+
16
## Netlify
27

8+
> See also <https://quarto.org/docs/publishing/netlify.html> about Netlify publishing support in Quarto.
9+
310
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.
411
Give this token a memorable name, and note the resulting string (or keep this window open in a tab)
512

@@ -21,13 +28,16 @@ Give this token a memorable name, and note the resulting string (or keep this wi
2128
2229
## GitHub Pages
2330
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.
2533
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-pages branch.
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).
2735

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>
2939

30-
4. Configure action to use gh-pages:
40+
3. Configure Quarto publish action to use `gh-pages` as publishing target:
3141

3242
```yaml
3343
- 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
3848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
3949
```
4050

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:`:
4252

4353
```yaml
4454
permissions:
@@ -47,6 +57,8 @@ Give this token a memorable name, and note the resulting string (or keep this wi
4757

4858
## Posit Connect
4959

60+
> See also <https://quarto.org/docs/publishing/rstudio-connect.html> about Posit Connect publishing support in Quarto.
61+
5062
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).
5163

5264
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
6678
CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
6779
```
6880

69-
## Other configurations
81+
## Other configurations available for Quarto Publish action
7082

7183
The `with` parameter can also be set to configure the following
7284

0 commit comments

Comments
 (0)