deploy workflow
Some checks are pending
/ deploy (push) Blocked by required conditions

This commit is contained in:
ari melody 2026-09-15 10:31:52 +01:00
parent 64a50ccd10
commit 097d8241d0
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 27 additions and 2 deletions

View file

@ -0,0 +1,27 @@
on:
push:
branches:
- main
env:
REMOTE: ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}
PORT: ${{ secrets.SSH_PORT }}
jobs:
deploy:
runs-on: docker
needs: build
steps:
- name: Set up SSH keys
run: |
mkdir -m 700 -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_deploy
chmod 600 ~/.ssh/id_deploy
- name: Pull latest branch to production
run: |
ssh-keyscan -p $PORT $REMOTE >> ~/.ssh/known_hosts
ssh $REMOTE -p $PORT <<EOF
cd ${{ secrets.SSH_DIRECTORY }}
git pull
EOF

View file

@ -1,2 +0,0 @@
bundle:
tar czf ./blisstown-web.tar.gz -C public .