From 6affca2f090e58657be08b73db74f1d4ae084484 Mon Sep 17 00:00:00 2001 From: Julie <58961215+queenkjuul@users.noreply.github.com> Date: Tue, 5 Nov 2024 03:30:04 -0600 Subject: [PATCH] Update build-windows.yml --- .github/workflows/build-windows.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 6e83d2a..3a34992 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -39,8 +39,21 @@ jobs: run: npm run build:windows working-directory: ./server - name: archive - run: dir; Compress-Archive -LiteralPath win -DestinationPath spotify97-server-win64-${{ env.PACKAGE_VERSION }}.zip + run: Compress-Archive -LiteralPath win -DestinationPath spotify97-server-win64-${{ env.PACKAGE_VERSION }}.zip;dir win;dir working-directory: ./server/dist + - uses: actions/upload-artifact@v4 + with: + name: windows-binary-${{ env.SHA }} + path: server/dist/spotify97-server-win64-${{ env.PACKAGE_VERSION }}.zip + upload: + runs-on: ubuntu-latest + steps: + - name: download + uses: actions/download-artifact@v4 + with: + name: windows-binary-${{ env.SHA }} + path: spotify97-server-win64-${{ env.PACKAGE_VERSION }}.zip + - run: ls -la - name: upload uses: appleboy/scp-action@v0.1.7 with: @@ -49,7 +62,7 @@ jobs: port: ${{ secrets.PORT }} key: ${{ secrets.KEY }} passphrase: ${{ secrets.PASSPHRASE }} - source: "server/dist/spotify97-server-win64-${{env.PACKAGE_VERSION}}.tar.gz" + source: "spotify97-server-win64-${{env.PACKAGE_VERSION}}.zip" target: /srv/www/public/spotifyclient97/server/${{ env.PACKAGE_VERSION }}/${{ env.SHA }}/ strip_components: 2