Skip to content

Commit 97a1036

Browse files
committed
Release pipeline optimization
1 parent 8d9d787 commit 97a1036

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,22 @@ jobs:
2525
with:
2626
go-version: 1.17
2727

28-
- name: Build bins
28+
- name: Build binaries
2929
id: build_bins
3030
env:
3131
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
3232
TAG_NAME: ${{ steps.branch_name.outputs.TAG_NAME }}
3333
run: make build-all
3434

35-
- name: Create Release in Github
36-
id: create_release
37-
uses: actions/create-release@v1
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions
40-
with:
41-
tag_name: ${{ github.ref }}
42-
release_name: ${{ github.ref }}
43-
draft: true # So we can manually edit before publishing
44-
prerelease: ${{ contains(github.ref, '-') }} # v0.1.2-beta1, 1.2.3-rc1
45-
46-
- name: Upload binaries
35+
- name: Create release and upload binaries
4736
uses: softprops/action-gh-release@v1
37+
if: startsWith(github.ref, 'refs/tags/')
4838
with:
4939
files: |
5040
bin/k0sctl-*
5141
bin/checksums.txt
5242
body_path: bin/checksums.md
43+
tag_name: ${{ steps.branch_name.outputs.TAG_NAME }}
44+
name: ${{ steps.branch_name.outputs.TAG_NAME }}
45+
draft: true # So we can manually edit before publishing
46+
prerelease: ${{ contains(steps.branch_name.outputs.TAG_NAME, '-') }} # v0.1.2-beta1, 1.2.3-rc1

0 commit comments

Comments
 (0)