File tree Expand file tree Collapse file tree 6 files changed +82
-636
lines changed Expand file tree Collapse file tree 6 files changed +82
-636
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : CalVer Release
2
+ on :
3
+ workflow_dispatch :
4
+ # push:
5
+ # branches:
6
+ # - main
7
+
8
+ permissions :
9
+ checks : write
10
+ contents : write
11
+ id-token : write
12
+ statuses : write
13
+
14
+ jobs :
15
+ calver-tag :
16
+ name : CalVer Release Tagging
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout Code
20
+ uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
23
+ fetch-tags : true
24
+
25
+ - name : Generate Calendar Version for Tagging
26
+ id : calver
27
+ run : |
28
+ # YYYY.MMDD.HHMM format in UTC
29
+ DATE=$(date -u +"%Y.%m%d.%H%M")
30
+ echo "Generated CalVer Tag: $DATE"
31
+ echo "version=$DATE" >> "$GITHUB_OUTPUT"
32
+
33
+ - name : Tag and Release
34
+ run : |
35
+ set -eou pipefail
36
+ gh release create "${{ steps.calver.outputs.version }}" \
37
+ --target main \
38
+ --title "Release ${{ steps.calver.outputs.version }}" \
39
+ --generate-notes
40
+ env :
41
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : SemVer Release
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ permissions :
9
+ checks : write
10
+ contents : write
11
+ id-token : write
12
+ statuses : write
13
+
14
+ jobs :
15
+ semver-tag :
16
+ name : SemVer Release Tagging
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - name : Checkout Code
20
+ uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
23
+ fetch-tags : true
24
+
25
+ - name : Generate Semantic Version for Tagging
26
+ id : semver
27
+ run : |
28
+ curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/local/bin
29
+ SEMVER=$(autotag -vn --scheme=conventional)
30
+ echo "Generated SemVer Tag: $SEMVER"
31
+ echo "version=$SEMVER" >> "$GITHUB_OUTPUT"
32
+
33
+ - name : Tag and Release
34
+ run : |
35
+ set -eou pipefail
36
+ gh release create "${{ steps.semver.outputs.version }}" \
37
+ --target main \
38
+ --title "Release ${{ steps.semver.outputs.version }}" \
39
+ --generate-notes
40
+ env :
41
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments