Skip to content

Commit

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


Expand Down

0 comments on commit ac9a05d

Please sign in to comment.