From 8a63bef8dd5cf944d31cdfd80b90fe5ad7af6667 Mon Sep 17 00:00:00 2001 From: Camille Frantz Date: Thu, 7 Nov 2024 18:12:42 -0600 Subject: [PATCH] gitea actions for deploying - something is going to break; just watch --- .gitea/workflows/deploy.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..456353d --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,19 @@ +on: + push: +name: deploy updated site +jobs: + deploy: + name: rsync the directories + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v2 + - name: deploy + uses: easingthemes/ssh-deploy@v5.1.0 + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: '-avz --delete' + SOURCE: public/ + REMOTE_HOST: $ {{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.TARGET }}