From 713449f2fc2ae18ee4eb72e7f288cb16b7e8ec15 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Tue, 16 Jul 2024 08:57:02 +0200 Subject: [PATCH] ci: build debian package in CI The debian package is also added to the artifacts and (on releases) attached to the release. Signed-off-by: Felix Moessbauer --- .github/workflows/build.yml | 12 ++++++++++-- .github/workflows/release.yml | 13 +++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7427d86..5aca9ed 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: run: | sudo apt update && sudo apt install -y make git zip - - run: make package + - run: make package deb - name: "web-ext lint" run: | @@ -70,7 +70,15 @@ jobs: path: | build/chrome/ + - uses: actions/upload-artifact@v4 + with: + name: debian-package + path: | + pkgs/linux-entra-sso_*.deb + - name: attest extension artifacts uses: actions/attest-build-provenance@v1 with: - subject-path: 'build/Linux-Entra-SSO-v*' + subject-path: | + build/Linux-Entra-SSO-v* + pkgs/linux-entra-sso_*.deb diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68f1d4a..24ac668 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: run: | sudo apt update && sudo apt install -y make git zip - - run: make package + - run: make package deb - name: sign Firefox extension by Mozilla run: | @@ -55,16 +55,25 @@ jobs: path: | build/linux_entra_sso-*.xpi + - uses: actions/upload-artifact@v4 + with: + name: debian-package + path: | + pkgs/linux-entra-sso_*.deb + - name: attest Firefox extension build uses: actions/attest-build-provenance@v1 with: - subject-path: build/linux_entra_sso-*.xpi + subject-path: | + build/linux_entra_sso-*.xpi + pkgs/linux-entra-sso_*.deb - name: create release uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v2.0.6 with: files: | build/linux_entra_sso-*.xpi + pkgs/linux-entra-sso_*.deb token: ${{ secrets.GITHUB_TOKEN }} body: | Release of version ${{ github.ref_name }}