diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 84ffd15..625ef2c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to Website +name: Deploy to Caddy on: push: @@ -6,16 +6,13 @@ on: jobs: deploy: - name: Deploy Pages - runs-on: windows + runs-on: linux-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Deploy docs to site directory + - name: Deploy to CT 103 run: | - $source = Join-Path (Get-Location) "docs" - $dest = "C:\sites\mutual-flourishing" - if (Test-Path $dest) { Remove-Item -Recurse -Force $dest } - Copy-Item -Path $source -Destination $dest -Recurse - Write-Host "Deployed docs folder to $dest" + # Deploy directly to CT 103 via internal network + ssh -i /root/.ssh/deploy_key root@10.0.0.103 "rm -rf /var/www/sites/mutual-flourishing.org/* && mkdir -p /var/www/sites/mutual-flourishing.org" + scp -i /root/.ssh/deploy_key -r docs/* root@10.0.0.103:/var/www/sites/mutual-flourishing.org/ + echo "Deployed to mutual-flourishing.org"