Skip to content

Commit 4f01b68

Browse files
committed
feat: setup pipeline
Signed-off-by: seven <[email protected]>
1 parent 3cb7855 commit 4f01b68

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/page-site.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: generate page site
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
deployments: write
12+
name: Publish to Cloudflare Pages
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- run: npm ci
17+
- run: npm run docs:build
18+
- name: Publish to Cloudflare Pages
19+
uses: cloudflare/pages-action@v1
20+
with:
21+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
22+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
23+
projectName: dockit-site
24+
directory: dist
25+
# Optional: Enable this if you want to have GitHub Deployments triggered
26+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
27+
branch: master
28+

0 commit comments

Comments
 (0)