Skip to content

Actions dashboard (#1) #1

Actions dashboard (#1)

Actions dashboard (#1) #1

Workflow file for this run

name: Update Files 📝
# Updates files on the VPS without rebuilding or redeploying the Docker image.
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
# Only run this workflow for changes in public or mdx directories
paths:
- "public/**"
- "frontend/mdx/**"
- "nginx/nginx.conf"
- "frontend/static/**"
release:
types: [published]
jobs:
update-public:
runs-on: ubuntu-latest
name: Update Public Files
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Copy public and mdx files
uses: appleboy/scp-action@v1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
source: "./public,./frontend/mdx,./nginx,./frontend/static,./docker-compose.yml"
target: "~/sourcedepth.com/"
overwrite: true