Skip to content

chore: Add deployment workflow for server updates #1

chore: Add deployment workflow for server updates

chore: Add deployment workflow for server updates #1

Workflow file for this run

name: deploy
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: deploy to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
cd docker/personal-website
git pull
docker compose up -d