File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,8 +251,33 @@ jobs:
251251 env :
252252 GH_TOKEN : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
253253 run : |
254+ # Add XBPS checksums to checksums.txt
255+ cd ${{ runner.temp }}/xbps-packages/
256+ sha256sum *.xbps >> ${{ github.workspace }}/dist/checksums.txt
257+ cd ${{ github.workspace }}
258+
259+ # Upload XBPS packages
254260 gh release upload "${{ github.ref_name }}" ${{ runner.temp }}/xbps-packages/*.xbps --repo "${{ github.repository }}"
255261
262+ - name : Upload Gentoo ebuild to release
263+ env :
264+ GH_TOKEN : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
265+ run : |
266+ VERSION="${{ steps.version.outputs.version }}"
267+ EBUILD_FILE="${{ runner.temp }}/gentoo-overlay/app-misc/d4s/d4s-${VERSION}.ebuild"
268+
269+ # Add ebuild checksum
270+ sha256sum "${EBUILD_FILE}" | sed "s|${{ runner.temp }}/gentoo-overlay/app-misc/d4s/||" >> dist/checksums.txt
271+
272+ # Upload ebuild
273+ gh release upload "${{ github.ref_name }}" "${EBUILD_FILE}" --repo "${{ github.repository }}"
274+
275+ - name : Update checksums.txt with all artifacts
276+ env :
277+ GH_TOKEN : ${{ secrets.GORELEASER_GITHUB_TOKEN }}
278+ run : |
279+ gh release upload "${{ github.ref_name }}" dist/checksums.txt --clobber --repo "${{ github.repository }}"
280+
256281 - uses : actions/attest-build-provenance@v3
257282 with :
258283 subject-checksums : ./dist/checksums.txt
You can’t perform that action at this time.
0 commit comments