6
6
branches :
7
7
- main
8
8
release :
9
- types : [published]
9
+ types : [ published ]
10
10
11
11
jobs :
12
12
build-deb :
@@ -16,16 +16,21 @@ jobs:
16
16
matrix :
17
17
distro :
18
18
- debian-unstable
19
+ - debian-trixie
20
+ - debian-bookworm
19
21
- debian-bullseye
22
+ - ubuntu-noble
20
23
- ubuntu-jammy
21
24
- ubuntu-focal
25
+
26
+ # Pin your dependencies with https://github.com/mheap/pin-github-action
22
27
steps :
23
28
- name : Harden Runner
24
- uses : step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
29
+ uses : step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # pin@v2
25
30
with :
26
31
egress-policy : audit
27
32
28
- - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
33
+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
29
34
30
35
# Determine which PPA we should upload to
31
36
- name : PPA
@@ -40,48 +45,70 @@ jobs:
40
45
env :
41
46
REF : ${{ github.ref }}
42
47
43
- - uses : legoktm/gh-action-auto-dch@18025761b70898aac9ddb5bdc726bcd083926714 # master
48
+ - uses : legoktm/gh-action-auto-dch@2b7d6a33db93a408d4b5e2edf38be7fd578b11d7 # pin@main
44
49
with :
45
50
fullname : Kiwix builder
46
51
email : release+launchpad@kiwix.org
47
52
distro : ${{ matrix.distro }}
48
53
49
- - uses : legoktm/gh-action-build-deb@4f3fbf87de8bf0870f44624693cae17b7ad34ca2 # debian-unstable
54
+ - uses : legoktm/gh-action-build-deb@7a6b22239275ae4e425fefc6f1aeb1118160500d # pin@ debian-unstable
50
55
if : matrix.distro == 'debian-unstable'
51
56
name : Build package for debian-unstable
52
57
id : build-debian-unstable
53
58
with :
54
59
args : --no-sign
55
60
56
- - uses : legoktm/gh-action-build-deb@1f7501377e7c229f373748af433e5c3818eeae6e # debian-bullseye
61
+ - uses : legoktm/gh-action-build-deb@b47978ba8498dc8b8153cc3b5f99a5fc1afa5de1 # pin@debian-trixie
62
+ if : matrix.distro == 'debian-trixie'
63
+ name : Build package for debian-trixie
64
+ id : build-debian-trixie
65
+ with :
66
+ args : --no-sign
67
+
68
+ - uses : legoktm/gh-action-build-deb@1f4e86a6bb34aaad388167eaf5eb85d553935336 # pin@debian-bookworm
69
+ if : matrix.distro == 'debian-bookworm'
70
+ name : Build package for debian-bookworm
71
+ id : build-debian-bookworm
72
+ with :
73
+ args : --no-sign
74
+
75
+ - uses : legoktm/gh-action-build-deb@084b4263209252ec80a75d2c78a586192c17f18d # pin@debian-bullseye
57
76
if : matrix.distro == 'debian-bullseye'
58
77
name : Build package for debian-bullseye
59
78
id : build-debian-bullseye
60
79
with :
61
80
args : --no-sign
62
81
63
- - uses : legoktm/gh-action-build-deb@56d1c4bc50f5525fa9b66ac6d7a984ece0428d46 # ubuntu-jammy
82
+ - uses : legoktm/gh-action-build-deb@9114a536498b65c40b932209b9833aa942bf108d # pin@ubuntu-noble
83
+ if : matrix.distro == 'ubuntu-noble'
84
+ name : Build package for ubuntu-noble
85
+ id : build-ubuntu-noble
86
+ with :
87
+ args : --no-sign
88
+ ppa : ${{ steps.ppa.outputs.ppa }}
89
+
90
+ - uses : legoktm/gh-action-build-deb@1553bc52b826020691af83a7354a047f2727106c # pin@ubuntu-jammy
64
91
if : matrix.distro == 'ubuntu-jammy'
65
92
name : Build package for ubuntu-jammy
66
93
id : build-ubuntu-jammy
67
94
with :
68
95
args : --no-sign
69
96
ppa : ${{ steps.ppa.outputs.ppa }}
70
97
71
- - uses : legoktm/gh-action-build-deb@e58c0b09a3955e39a4ab83ffe03025d622dda039 # ubuntu-focal
98
+ - uses : legoktm/gh-action-build-deb@77900afcbdc12874b7177e0e9fca2f4da043cd05 # pin@ ubuntu-focal
72
99
if : matrix.distro == 'ubuntu-focal'
73
100
name : Build package for ubuntu-focal
74
101
id : build-ubuntu-focal
75
102
with :
76
103
args : --no-sign
77
104
ppa : ${{ steps.ppa.outputs.ppa }}
78
105
79
- - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
106
+ - uses : actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # pin@v4
80
107
with :
81
108
name : Packages for ${{ matrix.distro }}
82
109
path : output
83
110
84
- - uses : legoktm/gh-action-dput@a41ede69b89b473fb9de31db5f82aef098ca6492 # master
111
+ - uses : legoktm/gh-action-dput@4f46c373c7d114c8885c376be07f9ad5490c4f51 # pin@main
85
112
name : Upload dev package
86
113
# Only upload on pushes to main
87
114
if : github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-')
90
117
repository : ppa:kiwixteam/dev
91
118
packages : output/*_source.changes
92
119
93
- - uses : legoktm/gh-action-dput@a41ede69b89b473fb9de31db5f82aef098ca6492 # master
120
+ - uses : legoktm/gh-action-dput@4f46c373c7d114c8885c376be07f9ad5490c4f51 # pin@main
94
121
name : Upload release package
95
122
if : github.event_name == 'release' && startswith(matrix.distro, 'ubuntu-')
96
123
with :
0 commit comments