From a2da647719aeab69bd67deb1781a78600bab7c4e Mon Sep 17 00:00:00 2001 From: Arne Date: Thu, 25 Jan 2024 14:20:00 +0100 Subject: [PATCH] Add .gitea / workflows/copy.yaml --- .gitea / workflows/copy.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea / workflows/copy.yaml diff --git a/.gitea / workflows/copy.yaml b/.gitea / workflows/copy.yaml new file mode 100644 index 0000000..9c96ff2 --- /dev/null +++ b/.gitea / workflows/copy.yaml @@ -0,0 +1,22 @@ +name: Copy Website 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 *" \ No newline at end of file