Skip to content

Commit 3754f75

Browse files
committed
feat(workflow): create release first
1 parent e6505a2 commit 3754f75

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/cli-release.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,24 @@ env:
1212
GO_VERSION: '1.25.1'
1313

1414
jobs:
15-
release:
16-
name: Release
15+
create-release:
16+
name: Create Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
# TODO: add changelog generation
23+
- name: Generate Changelog
24+
run: echo "# Changelog" > ${{ github.workspace }}-CHANGELOG.txt
25+
26+
- name: Create Release with Notes
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
body_path: ${{ github.workspace }}-CHANGELOG.txt
30+
31+
upload-binaries:
32+
name: Upload Binaries
1733
runs-on: ubuntu-latest
1834
strategy:
1935
matrix:
@@ -26,9 +42,6 @@ jobs:
2642
- name: Checkout code
2743
uses: actions/checkout@v4
2844

29-
- name: Create Release with Notes
30-
uses: softprops/action-gh-release@v1
31-
3245
- name: Go Release Binaries
3346
uses: wangyoucao577/go-release-action@v1
3447
with:

0 commit comments

Comments
 (0)