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
{{ message }}
Repository navigation
Commit d5b838a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/publish/README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Overview
4
4
5
-
The `quarto publish` command enables you to easily publish websites and documents to a variety of services, including [Netlify](https://www.netlify.com/), [GitHub Pages](https://pages.github.com/) and [Posit Connect](https://posit.co/products/enterprise/connect/) (more services will be added over time).
5
+
The `quarto publish` command enables you to easily publish websites and documents to a variety of services, including [Netlify](https://www.netlify.com/), [GitHub Pages](https://pages.github.com/), [Cloudflare Pages](https://pages.cloudflare.com/) and [Posit Connect](https://posit.co/products/enterprise/connect/) (more services will be added over time).
6
6
7
7
To publish a website or book, just execute `quarto publish` from within the project directory:
8
8
@@ -46,6 +46,7 @@ As an alternative to providing account credentials interactively, you case use t
| Cloudflare Pages | `CLOUDFLARE_ACCOUNT_ID` and `CLOUDFLARE_API_TOKEN` |
49
50
| Postit Connect | `CONNECT_SERVER` and `CONNECT_API_KEY` |
50
51
51
52
Using an environment variable combined with a `_publish.yml` file that points to the requisite publishing destination is enough to enable the following command to perform a headless publish on CI:
@@ -56,18 +57,22 @@ quarto publish
56
57
57
58
GitHub Pages publishing requires no special environment variables (as it use the version of git available on your system or on the CI server).
58
59
60
+
Cloudflare Pages publishing uses the Wrangler CLI. Install Wrangler and provide a Cloudflare account ID and API token via environment variables or command line options.
61
+
59
62
### Command Line
60
63
61
64
As an alternative to using a `_publish.yml` file, you can also specify your publish destination explicilty on the command line using a provider name (e.g. `netlify` or `connect`) along with the `--id` option. For example:
62
65
63
66
```bash
64
67
quarto publish netlify --id DDA36416-F950-4647-815C-01A24233E294
68
+
quarto publish cloudflare-pages --id my-quarto-site
65
69
```
66
70
67
71
If your credentials are not stored in an environment variable as described above, you can optionally provide them the command line. For example:
68
72
69
73
```bash
70
74
quarto publish netlify --id DDA36416-F950-4647-815C-01A24233E294 --token 7C0947A852D8
75
+
quarto publish cloudflare-pages --id my-quarto-site --server 0123456789abcdef --token CF_API_TOKEN
71
76
```
72
77
73
78
When publishing to Posit Connect you should make sure that the server, token, and id are all available either via environment variables or the command line. For example:
0 commit comments