Skip to content

Commit 9a54791

Browse files
committed
try gentoo build
1 parent 01ff3a7 commit 9a54791

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)