Skip to content

Commit

Permalink
ci: build debian package in CI
Browse files Browse the repository at this point in the history
The debian package is also added to the artifacts and (on releases)
attached to the release.

Signed-off-by: Felix Moessbauer <[email protected]>
  • Loading branch information
fmoessbauer committed Jul 16, 2024
1 parent 79e2531 commit 713449f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}
Expand Down

0 comments on commit 713449f

Please sign in to comment.