@@ -182,6 +182,34 @@ jobs:
182
182
asset_path : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
183
183
asset_name : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.tar.gz
184
184
asset_content_type : application/octet-stream
185
+ - name : Build dg deb
186
+ uses : defGuard/fpm-action@main
187
+ with :
188
+ fpm_args : ' dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}=/usr/sbin/dg dg.service=/usr/lib/systemd/system/dg.service src-tauri/cli/.env=/etc/defguard/dg.conf'
189
+ fpm_opts : ' --architecture ${{ matrix.binary_arch }} --debug --output-type deb --version ${{ env.VERSION }} --package dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.deb'
190
+ - name : Upload DEB
191
+
192
+ env :
193
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
194
+ with :
195
+ upload_url : ${{ needs.create-release.outputs.upload_url }}
196
+ asset_path : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.deb
197
+ asset_name : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.deb
198
+ asset_content_type : application/octet-stream
199
+ - name : Build dg rpm
200
+ uses : defGuard/fpm-action@main
201
+ with :
202
+ fpm_args : ' dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}=/usr/sbin/dg dg.service=/usr/lib/systemd/system/dg.service src-tauri/cli/.env=/etc/defguard/dg.conf'
203
+ fpm_opts : ' --architecture ${{ matrix.binary_arch }} --debug --output-type rpm --version ${{ env.VERSION }} --package dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.rpm'
204
+ - name : Upload RPM
205
+
206
+ env :
207
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
208
+ with :
209
+ upload_url : ${{ needs.create-release.outputs.upload_url }}
210
+ asset_path : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.rpm
211
+ asset_name : dg-linux-${{ matrix.binary_arch }}-${{ github.ref_name }}.rpm
212
+ asset_content_type : application/octet-stream
185
213
186
214
build-macos :
187
215
needs :
0 commit comments