Skip to content

Commit 234de17

Browse files
authored
move docs deployment to fastly service (#79)
1 parent 228ae1f commit 234de17

File tree

7 files changed

+15
-9
lines changed

7 files changed

+15
-9
lines changed

.DS_Store

-2 KB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010

1111
env:
1212
RUSTFLAGS: -Dwarnings
13+
DOCS_FASTLY_API_TOKEN: ${{ secrets.DOCS_FASTLY_API_TOKEN }}
14+
DOCS_FASTLY_SERVICE_ID: ${{ vars.DOCS_FASTLY_SERVICE_ID }}
15+
DOCS_FASTLY_KVSTORE_NAME: ${{ vars.DOCS_FASTLY_KVSTORE_NAME }}
1316

1417
jobs:
1518
rustfmt:
@@ -71,7 +74,7 @@ jobs:
7174
- uses: extractions/setup-just@v3
7275

7376
- uses: actions-rust-lang/setup-rust-toolchain@v1
74-
77+
7578
- name: Build WebAssembly module
7679
run: just
7780

@@ -82,8 +85,11 @@ jobs:
8285
uses: mattnotmitt/[email protected]
8386

8487
- name: Deploy docs
85-
uses: JamesIves/github-pages-deploy-action@v4
8688
if: github.ref == 'refs/heads/main'
87-
with:
88-
branch: gh-pages
89-
folder: docs # The folder the action should deploy.
89+
env:
90+
FASTLY_API_TOKEN: ${{ env.DOCS_FASTLY_API_TOKEN }}
91+
run: |
92+
npx -y @fastly/compute-js-static-publish@7 --root-dir=./docs --output=./docs-compute-cpp --service-id=${{ env.DOCS_FASTLY_SERVICE_ID }} --kv-store-name=${{ env.DOCS_FASTLY_KVSTORE_NAME }}
93+
cd ./docs-compute-cpp
94+
npm install
95+
npm run fastly:publish

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fastly-sys"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
authors = ["Kat Marchán <[email protected]>", "Sy Brand <[email protected]>"]
55
edition = "2024"
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This SDK is lets you use Fastly Compute platform directly with C++, using a
99
C++-native API with all the usual facilities of modern C++. In case you got to
1010
this page from elsewhere, the full documentation is available online at [this
11-
link](https://cuddly-adventure-lrw9z3m.pages.github.io).
11+
link](https://cpp-compute-sdk.fastly.dev).
1212

1313
### Examples
1414

docs/.nojekyll

Whitespace-only changes.

quickstart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ curl -d "hello, world!" http://127.0.0.1:7676/
5252
### Documentation
5353
5454
Online documentation can be accessed
55-
[here](https://cuddly-adventure-lrw9z3m.pages.github.io/).
55+
[here](https://cpp-compute-sdk.fastly.dev/).
5656
5757
The quickstart tarball also includes the HTML reference docs in
5858
`docs/index.html`, which you can open locally. If you've configured your editor

0 commit comments

Comments
 (0)