File tree 4 files changed +3704
-3297
lines changed
4 files changed +3704
-3297
lines changed Original file line number Diff line number Diff line change
1
+ name : " Deploy to Cloudflare Pages (Preview)"
2
+
3
+ on : [pull_request_target]
4
+
5
+ jobs :
6
+ deploy :
7
+ runs-on : " ubuntu-latest"
8
+ permissions :
9
+ contents : read
10
+ deployments : write
11
+ pull-requests : write
12
+ steps :
13
+ - name : " checkout"
14
+ uses : " actions/checkout@v4"
15
+ with :
16
+ fetch-depth : 0
17
+ ref : ${{ github.event.pull_request.head.ref }}
18
+ repository : ${{ github.event.pull_request.head.repo.full_name }}
19
+ - name : " setup pnpm"
20
+ uses : " pnpm/action-setup@v4"
21
+ - name : " setup node"
22
+ uses : " actions/setup-node@v4"
23
+ with :
24
+ cache : " pnpm"
25
+ node-version : 20
26
+ - name : " install dependencies"
27
+ run : " pnpm install"
28
+ - name : " build"
29
+ run : " pnpm run build"
30
+ - name : " publish (push)"
31
+ id : " cloudflare-publish"
32
+ uses : " AdrianGonz97/refined-cf-pages-action@v1"
33
+ with :
34
+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
35
+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
36
+ projectName : " papermc-website"
37
+ deploymentName : " Preview"
38
+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
39
+ directory : " build"
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ yarn-error.log*
28
28
# local env files
29
29
.env * .local
30
30
31
- # vercel
32
- .vercel
33
-
34
31
# typescript
35
32
* .tsbuildinfo
36
33
Original file line number Diff line number Diff line change 41
41
"windicss" : " 3.5.6" ,
42
42
"windicss-webpack-plugin" : " 1.8.0"
43
43
},
44
- "sideEffects" : false
44
+ "sideEffects" : false ,
45
+ "packageManager" :
" [email protected] +sha512.98a80fd11c2e7096747762304106432b3ddc67dcf54b5a8c01c93f68a2cd5e05e6821849522a06fb76284d41a2660d5e334f2ee3bbf29183bf2e739b1dafa771"
45
46
}
You can’t perform that action at this time.
0 commit comments