From 8e08ff0136193da47488b8d302b2d41e8ce57481 Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Wed, 9 Mar 2022 16:52:56 -0500 Subject: [PATCH] add pacman for x86 --- .github/workflows/buildandrelease.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildandrelease.yml b/.github/workflows/buildandrelease.yml index deb5ab9f..f14b336d 100644 --- a/.github/workflows/buildandrelease.yml +++ b/.github/workflows/buildandrelease.yml @@ -59,7 +59,7 @@ jobs: prerelease: true asset_name: netmaker - - name: Upload x86 to Release + - name: Upload netclient x86 to Release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -93,12 +93,30 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: netclient_${{ env.PACKAGE_VERSION }}_x86_64.rpm + # remove -1 only needed for version with _testing + file: netclient_${{ env.PACKAGE_VERSION }}-1_x86_64.rpm tag: ${{ env.NETMAKER_VERSION }} overwrite: true prerelease: true asset_name: netclient_${{ env.PACKAGE_VERSION }}_x86_64.rpm + - name: Package x86 pacman + uses: gravitl/github-action-fpm@master + with: + # arch has particular path requirements --- cannot write to a symbolic link e.g. /sbin and /lib + fpm_args: './netclient/build/netclient=/usr/bin/netclient ./netclient/build/netclient.service=/usr/lib/systemd/system/netclient.service' + fpm_opts: '--debug -s dir -t deb --architecture amd64 --version ${{ env.PACKAGE_VERSION }}' + - name: Upload x86 pacman to Release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + # as for rpms -1 only need for _testing releases + file: netclient_${{ env.PACKAGE_VERSION }}-1_x86_64.pkg.tar.zst + tag: ${{ env.NETMAKER_VERSION }} + overwrite: true + prerelease: true + asset_name: netclient_${{ env.PACKAGE_VERSION }}_x86_64.pkg.tar.zst + #- name: Upload arm5 to Release # uses: svenstaro/upload-release-action@v2 # with: