File tree 3 files changed +819
-414
lines changed
3 files changed +819
-414
lines changed Original file line number Diff line number Diff line change 7
7
publish :
8
8
runs-on : ubuntu-latest
9
9
permissions :
10
- contents : read
10
+ contents : write
11
11
deployments : write
12
- name : Publish to Cloudflare Pages
13
12
steps :
14
13
- name : Checkout
15
14
uses : actions/checkout@v4
15
+ - name : Use Node.js 20.x
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version : 20.x
19
+ cache : ' npm'
16
20
- run : npm ci
17
21
- run : npm run docs:build
22
+ - name : Generate changelog
23
+ uses : jaywcjlove/changelog-generator@main
24
+ if : ${{ github.ref == 'refs/heads/master' }}
25
+ id : changelog
26
+ with :
27
+ token : ${{ secrets.GITHUB_TOKEN }}
28
+ - name : Build Release
29
+ uses : jaywcjlove/create-tag-action@main
30
+ if : ${{ github.ref == 'refs/heads/master' }}
31
+ id : tag_release
32
+ with :
33
+ release : true
34
+ token : ${{ secrets.GITHUB_TOKEN }}
35
+ body : |
36
+ ${{ steps.changelog.outputs.compareurl }}
37
+
38
+ ${{ steps.changelog.outputs.changelog }}
39
+
40
+ Document Website: https://raw.githack.com/jaywcjlove/changelog-generator/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html
41
+
18
42
- name : Publish to Cloudflare Pages
19
43
uses : cloudflare/pages-action@v1
44
+ if : steps.tag_release.outputs.successful
20
45
with :
21
46
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
22
47
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
26
51
gitHubToken : ${{ secrets.GITHUB_TOKEN }}
27
52
branch : main
28
53
environment : production
29
-
You can’t perform that action at this time.
0 commit comments