File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,10 +128,24 @@ jobs:
128128 if : runner.os == 'macOS'
129129 run : mv dist/check_netscaler dist/${{ matrix.artifact_name }}
130130
131+ - name : Generate SHA256 checksum (Linux/macOS)
132+ if : runner.os != 'Windows'
133+ run : |
134+ cd dist
135+ sha256sum ${{ matrix.artifact_name }} > ${{ matrix.artifact_name }}.sha256sum
136+
137+ - name : Generate SHA256 checksum (Windows)
138+ if : runner.os == 'Windows'
139+ run : |
140+ cd dist
141+ certutil -hashfile ${{ matrix.artifact_name }} SHA256 > ${{ matrix.artifact_name }}.sha256sum
142+
131143 - name : Upload binary artifact
132144 uses : actions/upload-artifact@v4
133145 with :
134146 name : ${{ matrix.artifact_name }}
135- path : dist/${{ matrix.artifact_name }}
147+ path : |
148+ dist/${{ matrix.artifact_name }}
149+ dist/${{ matrix.artifact_name }}.sha256sum
136150 if-no-files-found : error
137151 retention-days : 30
Original file line number Diff line number Diff line change @@ -165,11 +165,25 @@ jobs:
165165 if : runner.os == 'macOS'
166166 run : mv dist/check_netscaler dist/${{ matrix.artifact_name }}
167167
168+ - name : Generate SHA256 checksum (Linux/macOS)
169+ if : runner.os != 'Windows'
170+ run : |
171+ cd dist
172+ sha256sum ${{ matrix.artifact_name }} > ${{ matrix.artifact_name }}.sha256sum
173+
174+ - name : Generate SHA256 checksum (Windows)
175+ if : runner.os == 'Windows'
176+ run : |
177+ cd dist
178+ certutil -hashfile ${{ matrix.artifact_name }} SHA256 > ${{ matrix.artifact_name }}.sha256sum
179+
168180 - name : Upload binary artifact
169181 uses : actions/upload-artifact@v4
170182 with :
171183 name : ${{ matrix.artifact_name }}
172- path : dist/${{ matrix.artifact_name }}
184+ path : |
185+ dist/${{ matrix.artifact_name }}
186+ dist/${{ matrix.artifact_name }}.sha256sum
173187 if-no-files-found : error
174188
175189 release :
@@ -221,8 +235,11 @@ jobs:
221235 VERSION=${{ steps.semantic.outputs.version }}
222236 gh release upload v${VERSION} \
223237 artifacts/check_netscaler-linux/check_netscaler-linux \
238+ artifacts/check_netscaler-linux/check_netscaler-linux.sha256sum \
224239 artifacts/check_netscaler.exe/check_netscaler.exe \
240+ artifacts/check_netscaler.exe/check_netscaler.exe.sha256sum \
225241 artifacts/check_netscaler-macos/check_netscaler-macos \
242+ artifacts/check_netscaler-macos/check_netscaler-macos.sha256sum \
226243 --clobber
227244
228245 publish-testpypi :
You can’t perform that action at this time.
0 commit comments