restructuring of projects and adds first research project along with … #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |