File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 3232 runs-on : ${{ matrix.os }}
3333 steps :
3434 - uses : actions/checkout@v4
35+ with :
36+ fetch-depth : 0
3537 - uses : actions/setup-go@v5
3638 with :
3739 go-version : ' 1.22'
@@ -72,15 +74,21 @@ jobs:
7274 steps :
7375 - uses : actions/checkout@v4
7476 with :
77+ fetch-depth : 0
7578 token : ${{ secrets.GITHUB_TOKEN }}
7679
80+
81+ - name : Set release commit
82+ run : echo "RELEASE_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
83+
84+
7785
78- - name : Create empty commit for release
86+ - name : Create tag on specific commit
7987 run : |
8088 git config user.name "github-actions"
8189 git config user.email "github-actions@github.com"
82- git commit --allow-empty -m "chore: release ${{ github.event.inputs.tag_name }}"
83- git push origin HEAD:main
90+ git tag ${{ github.event.inputs.tag_name }} ${{ env.RELEASE_COMMIT }}
91+ git push origin ${{ github.event.inputs.tag_name }}
8492
8593 - name : Download all build artifacts
8694 uses : actions/download-artifact@v4
92100 with :
93101 tag_name : ${{ github.event.inputs.tag_name }}
94102 name : Release ${{ github.event.inputs.tag_name }}
95- body : " "
103+ body : " Installation "
96104 files : artifacts/**/*.zip
You can’t perform that action at this time.
0 commit comments