File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Docs
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+
6
+ jobs :
7
+ deploy :
8
+ name : Cloudflare Pages Deployment
9
+ if : >
10
+ github.repository == 'QwikDev/partytown'
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : read
14
+ deployments : write
15
+
16
+ steps :
17
+ - name : Checkout
18
+
19
+
20
+
21
+
22
+ - name : Setup Node
23
+
24
+ with :
25
+ node-version : 20.10.0
26
+ cache : ' pnpm'
27
+ registry-url : https://registry.npmjs.org/
28
+
29
+ - run : corepack enable
30
+
31
+ - name : Install NPM Dependencies
32
+ run : pnpm install --frozen-lockfile
33
+
34
+ - name : Build
35
+ run : pnpm build.site
36
+
37
+ - name : Deploy to Cloudflare Pages
38
+ uses : cloudflare/pages-action@v1
39
+ with :
40
+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
41
+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42
+ projectName : partytown-docs
43
+ directory : dist
44
+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments