File tree Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change 1
1
name : MKX Custom Deploy
2
2
3
- on :
4
- push :
5
- branches : [main]
6
-
7
- pull_request :
8
- branches :
9
- - main
10
-
11
- # paths:
12
- # - .github/workflows/pages-deployment.yml
13
-
14
- concurrency :
15
- group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16
- cancel-in-progress : true
17
-
3
+ on : [push]
18
4
jobs :
19
5
deploy :
20
6
runs-on : ubuntu-latest
21
-
22
7
permissions :
23
8
contents : read
24
9
deployments : write
25
-
10
+
26
11
name : Deploy to Cloudflare Pages
27
12
steps :
28
13
- name : Checkout
29
14
uses : actions/checkout@v4
30
- with :
31
- fetch-depth : 0
32
-
33
- - uses : actions/setup-node@v4
34
- with :
35
- node-version : ' latest'
36
15
37
16
- name : Build
38
17
run : |
39
18
cd website
40
19
npm install && npm run build
41
20
42
21
- name : Publish
43
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
44
22
uses : cloudflare/pages-action@v1
45
23
with :
46
24
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
47
25
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48
26
projectName : mkeithx
49
27
directory : website/build
50
- gitHubToken : ${{ secrets.GITHUB_TOKEN }}
51
- wranglerVersion : ' 3'
28
+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments