Skip to content

Commit c0f9bbb

Browse files
authored
Cloudflare docs (#2084)
1 parent 0ad5431 commit c0f9bbb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ permissions:
99
actions: read
1010
deployments: write
1111
contents: write
12-
pages: write
1312
id-token: write
1413

1514
jobs:
@@ -37,18 +36,17 @@ jobs:
3736
runs-on: ubuntu-latest
3837
needs: build
3938
steps:
40-
- name: Deploy to GitHub Pages
41-
id: deployment
42-
uses: actions/deploy-pages@v4
43-
39+
# Note, since we provide the job with a CloudFlare scoped API token, we run it in a separate job that doesn't
40+
# execute any repository code.
4441
- uses: actions/download-artifact@v4
4542
with:
4643
name: github-pages
47-
path: docs
48-
49-
# Note, since we use an API token we run it in a separate job that doesn't run any repository code.
44+
- name: Extract Pages Artifact
45+
run: mkdir docs && tar -xvf artifact.tar -C docs
46+
shell: bash
5047
- name: Upload artifacts to CloudFlare Pages
5148
uses: cloudflare/wrangler-action@v3
5249
with:
5350
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
54-
command: pages deploy docs --project-name=vortex-docs
51+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
52+
command: pages deploy docs/ --project-name=vortex-docs --branch=${{ github.ref }}

0 commit comments

Comments
 (0)