Skip to content

Commit fd0de9c

Browse files
authored
Housekeeping - enhance release workflow by consolidating artifacts an… (#28)
1 parent d9a96c4 commit fd0de9c

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,25 @@ jobs:
9494
with:
9595
pattern: binaries-*
9696
path: ./artifacts
97-
merge-multiple: true
97+
98+
- name: Consolidate artifacts
99+
run: |
100+
mkdir -p release-assets
101+
find artifacts -name "*.tar.gz" -exec cp {} release-assets/ \;
102+
ls -lh release-assets/
98103
99104
- name: Generate checksums
100105
run: |
101-
cd artifacts
102-
sha256sum * > checksums.txt
106+
cd release-assets
107+
sha256sum *.tar.gz > checksums.txt
108+
cat checksums.txt
103109
104110
- name: Create Release
105-
uses: softprops/action-gh-release@v1
111+
uses: softprops/action-gh-release@v2
106112
with:
107113
tag_name: ${{ steps.version.outputs.VERSION }}
108114
name: Release ${{ steps.version.outputs.VERSION }}
115+
generate_release_notes: true
109116
body: |
110117
## AKS Flex Node ${{ steps.version.outputs.VERSION }}
111118
@@ -136,6 +143,9 @@ jobs:
136143
137144
<!-- Add your changelog here -->
138145
files: |
139-
artifacts/*
146+
release-assets/*.tar.gz
147+
release-assets/checksums.txt
140148
draft: false
141-
prerelease: false
149+
prerelease: false
150+
fail_on_unmatched_files: true
151+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)