An ATproto social media client -- with an independent Appview.

refactor(ci): execute deployment script on vps

serenity 2947a3b3 fadc4e21

+16 -3
+9 -1
.github/workflows/build-and-deploy-catsky-web.yaml
··· 33 - name: Install dependencies 34 run: yarn install --frozen-lockfile 35 36 - - name: Build web and deploy with just 37 run: just dist-build-web
··· 33 - name: Install dependencies 34 run: yarn install --frozen-lockfile 35 36 + - name: Build web and transfer to VPS with just 37 run: just dist-build-web 38 + 39 + - name: Trigger deployment script 40 + uses: appleboy/ssh-action@v1 41 + with: 42 + host: ${{ secrets.VPS_IP }} 43 + username: catsky 44 + key: ${{ secrets.SSH_PRIVATE_KEY }} 45 + script: bash /tmp/catsky/deploySeraph.sh
+2 -2
justfile
··· 38 # no need to build the go binary as we'll do that on vps. 39 tar -czf catskyweb.tar.gz bskyweb/ 40 rsync -avz -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" catskyweb.tar.gz catsky@${VPS_IP}:/tmp/catsky/ 41 - # TODO: something to trigger the daemon rerun on the VPS. 42 - 43 [group('dev')] 44 dev-android-setup: prebuild-android 45 yarn android
··· 38 # no need to build the go binary as we'll do that on vps. 39 tar -czf catskyweb.tar.gz bskyweb/ 40 rsync -avz -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" catskyweb.tar.gz catsky@${VPS_IP}:/tmp/catsky/ 41 + rsync -avz -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no" scripts/seraphDeploy.sh catsky@${VPS_IP}:/tmp/catsky/ 42 + 43 [group('dev')] 44 dev-android-setup: prebuild-android 45 yarn android
+5
scripts/seraphDeploy.sh
···
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p go 3 + 4 + tar -xzf "/tmp/catsky/catskyweb.tar.gz" -C "/opt/catsky/" --strip-components=1 5 + systemctl restart catsky.service