From ac9a05d378c8e002e4ca8b6326466d9b97474aca Mon Sep 17 00:00:00 2001 From: Julie <58961215+queenkjuul@users.noreply.github.com> Date: Tue, 5 Nov 2024 02:24:03 -0600 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0ab824..f90a44d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: run: npm run build:all working-directory: ./server - name: archive - run: for platform in "linux/arm64" "linux/x64" "macos/x64";do tar -cvzf spotify97-server-$(echo $platform | tr "/" "-")-$(npm pkg get version | tr -d '"').tar.gz $platform;done + run: mkdir bin;for platform in "linux/arm64" "linux/x64" "macos/x64";do tar -cvzf bin/spotify97-server-$(echo $platform | tr "/" "-")-$(npm pkg get version | tr -d '"').tar.gz $platform;done working-directory: ./server/dist - name: upload uses: nicklasfrahm/scp-action@main @@ -51,7 +51,10 @@ jobs: key: ${{ secrets.KEY }} passphrase: ${{ secrets.PASSPHRASE }} insecure_ignore_fingerprint: true - source: "server/dist/*.tar.gz" + source: | + server/dist/bin/spotify97-server-linux-arm64-${{env.PACKAGE_VERSION}}.tar.gz + server/dist/bin/spotify97-server-linux-x64-${{env.PACKAGE_VESRION}}.tar.gz + server/dist/bin/spotify97-server-macos-x64-${{env.PACKAGE_VERSION}}.tar.gz target: /var/www/public/spotifyclient97/server/${{ env.PACKAGE_VERSION }}/${{ env.SHA }}/