This repository was archived by the owner on Oct 30, 2023. It is now read-only.
File tree 3 files changed +26
-59
lines changed
3 files changed +26
-59
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Deploy
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
5
+ tags :
6
+ - v[0-9]+.[0-9]+.[0-9]+
7
7
8
8
jobs :
9
9
deploy :
30
30
31
31
- run : pnpm docs:build
32
32
33
+ - name : Update CHANGELOG
34
+ id : changelog
35
+ uses : requarks/changelog-action@v1
36
+ with :
37
+ token : ${{ secrets.GITHUB_TOKEN }}
38
+ tag : ${{ github.ref_name }}
39
+
40
+ - name : Create Release
41
+ uses : ncipollo/release-action@v1.12.0
42
+ with :
43
+ allowUpdates : true
44
+ draft : false
45
+ makeLatest : true
46
+ name : ${{ github.ref_name }}
47
+ body : ${{ steps.changelog.outputs.changes }}
48
+ token : ${{ github.token }}
49
+
50
+ - name : Commit CHANGELOG.md
51
+ uses : stefanzweifel/git-auto-commit-action@v4
52
+ with :
53
+ branch : main
54
+ commit_message : ' docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
55
+ file_pattern : CHANGELOG.md
56
+
33
57
- name : Deploy
34
58
uses : peaceiris/actions-gh-pages@v3
35
59
with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 35
35
"docs:dev" : " vitepress dev docs" ,
36
36
"docs:build" : " vitepress build docs" ,
37
37
"docs:serve" : " vitepress serve docs" ,
38
- "changelog" : " conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0 -n changelog/config.ts"
39
38
},
40
39
"build" : {
41
40
"failOnWarn" : false
57
56
"@unocss/nuxt" : " ^0.55.3" ,
58
57
"@vueuse/nuxt" : " ^10.4.0" ,
59
58
"anu-vue" : " ^0.15.2" ,
60
- "conventional-changelog-cli" : " ^3.0.0" ,
61
59
"defu" : " ^6.1.2" ,
62
60
"eslint" : " ^8.48.0" ,
63
61
"markdown-it" : " ^13.0.1" ,
You can’t perform that action at this time.
0 commit comments