Skip to content

Commit 1096be6

Browse files
Update go.yml
1 parent eeb54c8 commit 1096be6

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/go.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,28 @@ jobs:
7070
needs: build-and-release
7171
runs-on: ubuntu-latest
7272
steps:
73+
- uses: actions/checkout@v4
74+
with:
75+
token: ${{ secrets.GITHUB_TOKEN }}
76+
77+
- name: Create dummy commit for release
78+
run: |
79+
echo "Release ${{ github.event.inputs.tag_name }}" > RELEASE_TAG.txt
80+
git config user.name "github-actions"
81+
git config user.email "github-actions@github.com"
82+
git add RELEASE_TAG.txt
83+
git commit -m "chore: prepare release ${{ github.event.inputs.tag_name }}"
84+
git push origin HEAD:main
85+
7386
- name: Download all build artifacts
7487
uses: actions/download-artifact@v4
7588
with:
7689
path: artifacts
90+
7791
- name: Create Release and Upload Assets
7892
uses: softprops/action-gh-release@v2
7993
with:
8094
tag_name: ${{ github.event.inputs.tag_name }}
8195
name: "Release ${{ github.event.inputs.tag_name }}"
82-
body: ""
96+
body: ""
8397
files: artifacts/**/*.zip

0 commit comments

Comments
 (0)