diff --git a/.gitea / workflows/deploy.yaml b/.gitea / workflows/deploy.yaml new file mode 100644 index 0000000..9c96ff2 --- /dev/null +++ b/.gitea / workflows/deploy.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