From ab1b2ac5c3c786d803d22ae617c9ac11c0e753ff Mon Sep 17 00:00:00 2001 From: Alexander Lyall Date: Sat, 8 Nov 2025 19:13:49 +0000 Subject: [PATCH] Add .gitea/workflows/publish.yaml Signed-off-by: Alexander Lyall --- .gitea/workflows/publish.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..f5e7875 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,33 @@ +name: Publish to Server +run-name: ${{ gitea.actor }} is publishing your site using Gitea Actions 🚀 + +on: + workflow_dispatch: + # Trigger the workflow on push + push: + branches: [main] + +# Authenticate to the the server via ssh +# and run our deployment script (sftp upload) +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: SFTP upload + uses: Dylan700/sftp-upload-action@latest + with: + server: ${{ vars.SSH_HOST }} + username: ${{ vars.SSH_USERNAME }} + key: ${{ secrets.SSH_KEY }} + passphrase: ${{ secrets.KEY_PASSWORD }} + port: 22 + uploads: | + . => ${{ vars.SSH_FOLDER }} + delete: 'true' + ignore: | + *.git + */**/*git* \ No newline at end of file -- 2.49.1