|
1 | 1 | name: Make a new release |
2 | 2 | on: |
3 | 3 | push: |
| 4 | + branches: |
| 5 | + - pkg |
4 | 6 | tags: |
5 | 7 | - v*.*.* |
6 | 8 |
|
|
55 | 57 | with: |
56 | 58 | draft: true |
57 | 59 | generate_release_notes: true |
| 60 | + release_name: pkg |
| 61 | + tag_name: pkg |
58 | 62 |
|
59 | 63 | create-sbom: |
60 | 64 | needs: |
@@ -141,45 +145,85 @@ jobs: |
141 | 145 | with: |
142 | 146 | fpm_args: |
143 | 147 | "defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu=/usr/bin/defguard-proxy |
144 | | - defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
| 148 | + linux/defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
145 | 149 | example-config.toml=/etc/defguard/proxy.toml" |
146 | | - fpm_opts: "--architecture amd64 --output-type deb --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.deb" |
| 150 | + fpm_opts: |
| 151 | + "--architecture amd64 |
| 152 | + --output-type deb |
| 153 | + --version ${{ env.VERSION }} |
| 154 | + --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.deb |
| 155 | + --before-install linux/preinst |
| 156 | + --after-install linux/postinst |
| 157 | + --before-remove linux/prerm |
| 158 | + --after-remove linux/postrm" |
147 | 159 |
|
148 | 160 | - name: Build aarch64 DEB package |
149 | 161 | uses: defGuard/fpm-action@main |
150 | 162 | with: |
151 | 163 | fpm_args: |
152 | 164 | "defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu=/usr/bin/defguard-proxy |
153 | | - defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
| 165 | + linux/defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
154 | 166 | example-config.toml=/etc/defguard/proxy.toml" |
155 | | - fpm_opts: "--architecture arm64 --output-type deb --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.deb" |
| 167 | + fpm_opts: |
| 168 | + "--architecture arm64 |
| 169 | + --output-type deb |
| 170 | + --version ${{ env.VERSION }} |
| 171 | + --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.deb |
| 172 | + --before-install linux/preinst |
| 173 | + --after-install linux/postinst |
| 174 | + --before-remove linux/prerm |
| 175 | + --after-remove linux/postrm" |
156 | 176 |
|
157 | 177 | - name: Build x86_64 RPM package |
158 | 178 | uses: defGuard/fpm-action@main |
159 | 179 | with: |
160 | 180 | fpm_args: |
161 | 181 | "defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu=/usr/bin/defguard-proxy |
162 | | - defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
| 182 | + linux/defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
163 | 183 | example-config.toml=/etc/defguard/proxy.toml" |
164 | | - fpm_opts: "--architecture amd64 --output-type rpm --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.rpm" |
| 184 | + fpm_opts: |
| 185 | + "--architecture amd64 |
| 186 | + --output-type rpm |
| 187 | + --version ${{ env.VERSION }} |
| 188 | + --package defguard-proxy-${{ env.VERSION }}-x86_64-unknown-linux-gnu.rpm |
| 189 | + --before-install linux/preinst |
| 190 | + --after-install linux/postinst |
| 191 | + --before-remove linux/prerm |
| 192 | + --after-remove linux/postrm" |
165 | 193 |
|
166 | 194 | - name: Build aarch64 RPM package |
167 | 195 | uses: defGuard/fpm-action@main |
168 | 196 | with: |
169 | 197 | fpm_args: |
170 | 198 | "defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu=/usr/bin/defguard-proxy |
171 | | - defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
| 199 | + linux/defguard-proxy.service=/usr/lib/systemd/system/defguard-proxy.service |
172 | 200 | example-config.toml=/etc/defguard/proxy.toml" |
173 | | - fpm_opts: "--architecture arm64 --output-type rpm --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.rpm" |
| 201 | + fpm_opts: |
| 202 | + "--architecture arm64 |
| 203 | + --output-type rpm |
| 204 | + --version ${{ env.VERSION }} |
| 205 | + --package defguard-proxy-${{ env.VERSION }}-aarch64-unknown-linux-gnu.rpm |
| 206 | + --before-install linux/preinst |
| 207 | + --after-install linux/postinst |
| 208 | + --before-remove linux/prerm |
| 209 | + --after-remove linux/postrm" |
174 | 210 |
|
175 | 211 | - name: Build FreeBSD package |
176 | 212 | uses: defGuard/fpm-action@main |
177 | 213 | with: |
178 | 214 | fpm_args: |
179 | 215 | "defguard-proxy-${{ env.VERSION }}-x86_64-unknown-freebsd=/usr/local/bin/defguard-proxy |
180 | | - defguard-proxy.service.freebsd=/usr/local/etc/rc.d/defguard-proxy |
| 216 | + freebsd/defguard-proxy=/usr/local/etc/rc.d/defguard-proxy |
181 | 217 | example-config.toml=/etc/defguard/proxy.toml" |
182 | | - fpm_opts: "--architecture amd64 --output-type freebsd --version ${{ env.VERSION }} --package defguard-proxy-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg --freebsd-osversion '*' --depends openssl" |
| 218 | + fpm_opts: |
| 219 | + "--architecture amd64 |
| 220 | + --output-type freebsd |
| 221 | + --version ${{ env.VERSION }} |
| 222 | + --package defguard-proxy-${{ env.VERSION }}_x86_64-unknown-freebsd.pkg |
| 223 | + --freebsd-osversion '*' |
| 224 | + --depends openssl |
| 225 | + --before-install freebsd/preinst |
| 226 | + --after-install freebsd/postinst" |
183 | 227 |
|
184 | 228 | - name: Upload Linux x86_64 archive |
185 | 229 | uses: shogo82148/actions-upload-release-asset@v1 |
|
0 commit comments