remove deploy workflow

This commit is contained in:
leander committed 2025-07-22 02:06:28 +02:00
1 parent 0a3894e14d
commit e07e6ebcd0
1 file changed
-24
-24
View File
@@ -1,24 +0,0 @@
name: Deploy
on:
push:
branches:
- main
jobs:
run_pull:
runs-on: ubuntu-latest
steps:
- name: Set up SSH
run: |
install -m 600 -D /dev/null ~/.ssh/id_ed25519
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 # This should be redundant but seems to do the trick.
ssh-keyscan -H ${{ vars.SSH_HOST }} > ~/.ssh/known_hosts
- name: Connect, pull and build
run: ssh ${{ secrets.SSH_USER }}@${{ vars.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ vars.MAIN_BRANCH }} && git pull && yarn build && exit"
- name: Clean up
run: rm -rf ~/.ssh