From 357fbf1e2608e7a59a6f9370e0c8ba1aa791b360 Mon Sep 17 00:00:00 2001 From: Arne Date: Fri, 26 Jan 2024 09:39:37 +0100 Subject: [PATCH] Add .gitea/workflows/deploy.yaml --- .gitea/workflows/deploy.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..61e29a9 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,23 @@ +name: Copy Files to Samba Share +on: + push: + branches: + - main + +jobs: + copy_files: + name: Copy Files + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install smbclient + run: | + apt-get update + apt-get install -y smbclient + + - name: Copy + run: | + smbclient //192.168.129.250/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c "cd \"letsencrypt/config/www\"; lcd \".\"; prompt; recurse; mput *" +