Skip to content

Commit

Permalink
feat/ci: add support for checksums
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
  • Loading branch information
kbdharun committed Jul 24, 2024
1 parent 4908382 commit e4bc1a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,17 @@ jobs:
run: |
dpkg-buildpackage --no-sign
mv ../*.deb ../base-files.deb
- name: Calculate and Save Checksums
run: |
sha256sum /__w/base-files/base-files.deb >> checksums.txt
- uses: actions/upload-artifact@v4
with:
name: base-files
path: |
/__w/base-files/base-files.deb
checksums.txt
- uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/main'
Expand All @@ -46,3 +51,4 @@ jobs:
name: "Continuous Build"
files: |
/__w/base-files/base-files.deb
checksums.txt
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@ jobs:
dpkg-buildpackage --no-sign
mv ../*.deb ../base-files.deb
- name: Calculate and Save Checksums
run: |
sha256sum /__w/base-files/base-files.deb >> checksums.txt
- uses: actions/upload-artifact@v4
with:
name: base-files
path: |
/__w/base-files/base-files.deb
checksums.txt
release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -67,4 +72,4 @@ jobs:
id: attest
uses: actions/attest-build-provenance@v1
with:
subject-path: '*.deb'
subject-path: '*.deb, *.txt'

0 comments on commit e4bc1a6

Please sign in to comment.