deploy workflow
Some checks failed
/ deploy (push) Failing after 2s

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

View file

@ -0,0 +1,26 @@
on:
push:
branches:
- main
env:
REMOTE: ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}
PORT: ${{ secrets.SSH_PORT }}
jobs:
deploy:
runs-on: docker
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 ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
ssh -p $PORT ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} <<EOF
cd ${{ secrets.SSH_DIRECTORY }}
git pull
EOF

View file

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