This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
Fix attestiation job by providing both artifacts (#235) #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
attestations: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout camblet-driver | ||
with: | ||
submodules: recursive | ||
- name: Install/setup prerequisites | ||
run: sudo apt install debhelper | ||
- name: Build camblet-driver Debian package | ||
run: make deb | ||
- name: Test camblet-driver Debian package | ||
run: sudo apt install -y ../camblet-driver_${{github.ref_name}}_all.deb | ||
- name: Build camblet-driver RedHat package | ||
run: make rpm | ||
with: | ||
subject-path: 'rpmbuild/RPMS/noarch/camblet-driver-*.rpm' | ||
- name: Generate artifact attestation for deb and rpm packages | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-path: '../camblet-driver_*.deb, rpmbuild/RPMS/noarch/camblet-driver-*.rpm' | ||
- name: Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "../camblet-driver_*.deb,rpmbuild/RPMS/noarch/camblet-driver-*.rpm" | ||
# uses: softprops/action-gh-release@v1 | ||
# # if: startsWith(github.ref, 'refs/tags/') | ||
# with: | ||
# files: | | ||
# ../camblet-driver_*.deb | ||
# tag_name: ${{ github.ref }} | ||
# draft: ${{ ! startsWith(github.ref, 'refs/tags/') }} | ||
# prerelease: ${{ ! startsWith(github.ref, 'refs/tags/') }} |