This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Expand file tree Collapse file tree 1 file changed +66
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release cliq
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' new semantic version'
8
+ required : true
9
+ default : ' v0.0.0'
10
+
11
+ jobs :
12
+ tag :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Generate `CHANGELOG.md`
21
+ uses : orhun/git-cliff-action@v4
22
+ with :
23
+ config : cliff.toml
24
+ args : --tag ${{ github.event.inputs.version }}
25
+ env :
26
+ OUTPUT : CHANGELOG.md
27
+
28
+ - name : Commit and tag
29
+ run : |
30
+ git config user.name 'github-actions[bot]'
31
+ git config user.email 'github-actions[bot]@users.noreply.github.com'
32
+ set +e
33
+ git add CHANGELOG.md
34
+ git commit -m "chore(release): prepare for ${{ github.event.inputs.version }}"
35
+ git tag -a ${{ github.event.inputs.version }} -m "${{ github.event.inputs.version }}"
36
+ git push https://${{ secrets.GH_TOKEN }}@github.com/adamperkowski/cliq.git ${{ github.event.inputs.version }}
37
+
38
+ release :
39
+ runs-on : ubuntu-latest
40
+ needs : tag
41
+
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ with :
45
+ ref : ${{ github.event.inputs.version }}
46
+
47
+ - name : Prepare files
48
+ run : |
49
+ cp LICENSE cliq/LICENSE
50
+ cp CHANGELOG.md cliq/CHANGELOG.md
51
+ tar -czf cliq-${{ github.event.inputs.version }}.tar.gz cliq
52
+ zip -r cliq-${{ github.event.inputs.version }}.zip cliq
53
+
54
+ - name : Release
55
+ uses : softprops/action-gh-release@v2
56
+ with :
57
+ tag_name : ${{ github.event.inputs.version }}
58
+ name : ${{ github.event.inputs.version }}
59
+ body : |
60
+ cliq ${{ github.event.inputs.version }}
61
+ ## major changes
62
+ append_body : true
63
+ files : |
64
+ cliq-${{ github.event.inputs.version }}.tar.gz
65
+ cliq-${{ github.event.inputs.version }}.zip
66
+ prerelease : ${{ contains(github.event.inputs.version, '-') }}
You can’t perform that action at this time.
0 commit comments