-
Notifications
You must be signed in to change notification settings - Fork 9
76 lines (61 loc) · 1.69 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# SPDX-FileCopyrightText: Copyright 2024 Siemens AG
#
# SPDX-License-Identifier: MPL-2.0
name: build browser extension
on:
push:
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to checkout the repository
permissions:
contents: read
id-token: write
attestations: write
env:
WEB_EXT_VERS: 8.2.0
jobs:
reuse-and-codestyle:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12.4'
- name: install dependencies
run: |
sudo apt update && sudo apt install -y python3-gi flake8 pylint python3-pydbus
pip3 install --break-system-packages fsfe-reuse
git clean -f -d
- name: execute linters
run: |
reuse lint
flake8
pylint linux-entra-sso.py
build-xpi:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: |
sudo apt update && sudo apt install -y make git zip
- run: make package
- name: "web-ext lint"
run: |
npx web-ext@${{ env.WEB_EXT_VERS }} lint --source-dir build/firefox --self-hosted
- uses: actions/upload-artifact@v4
with:
name: firefox-xpi
path: |
build/**/*.xpi
- uses: actions/upload-artifact@v4
with:
name: chrome-zip
path: |
build/chrome/
- name: attest extension artifacts
uses: actions/attest-build-provenance@v1
with:
subject-path: 'build/Linux-Entra-SSO-v*'