Skip to content

Commit

Permalink
Update build-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
queenkjuul authored Nov 5, 2024
1 parent 5cdbb85 commit 6affca2
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down

0 comments on commit 6affca2

Please sign in to comment.