-
-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (29 loc) · 889 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
push:
branches:
- main
name: Docs
jobs:
docs:
name: Build and deploy documentation
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: dtolnay/rust-toolchain@stable
- name: Build rustdocs
run: ./scripts/build-docs.sh
- name: Organize
run: |
rm -rf target/gh-pages
mkdir target/gh-pages
mv target/doc/_redirects target/gh-pages
mv target/doc target/gh-pages/rustdoc
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: datatest-stable
directory: target/gh-pages
gitHubToken: ${{ secrets.GITHUB_TOKEN }}