From 9a79bf54967dd3c6697fc918a6bd216193f226d9 Mon Sep 17 00:00:00 2001 From: therealpaulgg Date: Sat, 9 Mar 2024 23:14:00 -0700 Subject: [PATCH] update linux build to create more stuff --- .github/workflows/release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cad7912..9d2720e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,6 +68,22 @@ jobs: name: ssh-sync path: ./ssh-sync retention-days: 5 + - name: Install FPM + run: | + sudo apt-get update + sudo apt-get install -y ruby ruby-dev rubygems build-essential rpm + sudo gem install --no-document fpm + + - name: Create a .deb package + run: | + fpm -s dir -t deb -n ssh-sync -v ${{ github.ref_name }} --description "ssh-sync" \ + --deb-no-default-config-files \ + ./ssh-sync=/usr/local/bin/ssh-sync + + - name: Create an .rpm package + run: | + fpm -s dir -t rpm -n ssh-sync -v ${{ github.ref_name }} --description "ssh-sync" \ + ./ssh-sync=/usr/local/bin/ssh-sync release: needs: [build-docker, build-windows, build-linux] runs-on: ubuntu-latest @@ -77,7 +93,7 @@ jobs: uses: actions/download-artifact@v3 - uses: ncipollo/release-action@v1 with: - artifacts: "./ssh-sync-setup/ssh-sync-setup.exe,./ssh-sync/ssh-sync" + artifacts: "./ssh-sync-setup/ssh-sync-setup.exe,./ssh-sync/ssh-sync,*.deb,*.rpm" update-winget-manifest: needs: [build-docker, build-windows, build-linux, release] runs-on: windows-latest