diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..694c23e --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,25 @@ +name: Deploy HTML to Docker LXC +run-name: Deploying static site by ${{ github.actor }} + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest # Adjust if your runner uses a different label + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Copy HTML files to Docker LXC + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_KEY }} + source: "./*" + target: "/opt/adiuva-website/html/" + strip_components: 1 + overwrite: true \ No newline at end of file