Skip to content

Commit 754c1e0

Browse files
authored
deploy to observable (#1566)
* deploy to observable * OBSERVABLE_API_TOKEN
1 parent 152fd4e commit 754c1e0

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
key: data-${{ hashFiles('docs/data/*') }}-${{ steps.date.outputs.date }}
3232
- run: yarn build
3333
- run: yarn docs:build
34-
- uses: cloudflare/pages-action@1
35-
with:
36-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
37-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
38-
projectName: framework
39-
directory: docs/.observablehq/dist
40-
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
34+
- run: yarn docs:deploy
35+
env:
36+
OBSERVABLE_TOKEN: ${{ secrets.OBSERVABLE_API_TOKEN }}

docs/.observablehq/deploy.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"projectId": "497663d656fa5557",
3-
"workspaceLogin": "observablehq",
4-
"projectSlug": "cli"
2+
"projectId": "b385d10b723e37b6",
3+
"projectSlug": "framework",
4+
"workspaceLogin": "observablehq"
55
}

docs/deploying.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ The contents of the deploy config file look like this:
3737
```json run=false
3838
{
3939
"projectId": "0123456789abcdef",
40-
"workspaceLogin": "acme",
41-
"projectSlug": "hello-framework"
40+
"projectSlug": "hello-framework",
41+
"workspaceLogin": "acme"
4242
}
4343
```
4444

examples/observablehq.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ export default {
1212
sidebar: false,
1313
...baseConfig,
1414
title: "Observable Framework",
15-
head:
16-
process.env.CI &&
17-
`<script type="module" async src="https://events.observablehq.com/client.js?pageLoad"></script>
18-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ"></script>
15+
head: `<script async src="https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ"></script>
1916
<script>window.dataLayer=window.dataLayer||[];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());\ngtag('config','G-9B88TP6PKQ');</script>`,
2017
header: `<style>
2118

observablehq.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export default {
8989
<link rel="icon" type="image/png" href="/observable.png" sizes="32x32">${
9090
process.env.CI
9191
? `
92-
<script type="module" async src="https://events.observablehq.com/client.js?pageLoad"></script>
9392
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9B88TP6PKQ"></script>
9493
<script>window.dataLayer=window.dataLayer||[];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js',new Date());\ngtag('config','G-9B88TP6PKQ');</script>`
9594
: ""

0 commit comments

Comments
 (0)