File tree 3 files changed +45
-2
lines changed 3 files changed +45
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI/CD
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ ci :
13
+ runs-on : ubuntu-latest
14
+ timeout-minutes : 5
15
+ permissions :
16
+ contents : read
17
+ deployments : write
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v4
21
+ - name : Set up Node.js
22
+ uses : actions/setup-node@v4
23
+ with :
24
+ node-version-file : ' .nvmrc'
25
+ - name : Install dependencies
26
+ run : npm ci
27
+ - name : Build
28
+ run : npm run build
29
+ - name : Export static files
30
+ run : npm run export
31
+ - name : Publish to Cloudflare Pages
32
+ uses : cloudflare/pages-action@v1
33
+ with :
34
+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
35
+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
36
+ projectName : r3f-gravity-ball
37
+ directory : out
38
+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
39
+ - name : Upload build artifact
40
+ uses : actions/upload-artifact@v4
41
+ with :
42
+ name : build
43
+ path : ./out
Original file line number Diff line number Diff line change 1
- 18
1
+ 20
Original file line number Diff line number Diff line change 8
8
"start" : " next start" ,
9
9
"export" : " next export" ,
10
10
"prod" : " serve out" ,
11
- "lint" : " next lint" ,
11
+ "test: lint" : " next lint" ,
12
12
"test:types" : " tsc" ,
13
13
"deps:update" : " npm i $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo) --save-exact"
14
14
},
You can’t perform that action at this time.
0 commit comments