diff --git a/.gitea/workflows/copy.yaml b/.gitea/workflows/copy.yaml index 56b11c4..c022f64 100644 --- a/.gitea/workflows/copy.yaml +++ b/.gitea/workflows/copy.yaml @@ -12,18 +12,12 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Mount Samba share - uses: iamjameshunt/smb-mount-action@v1 - with: - server: 192.168.129.250 - username: ${{ secrets.SAMBA_USER }} - password: ${{ secrets.SAMBA_PASSWORD }} - share: arne - mountpoint: /mnt/samba # Mount point on the runner machine - - - name: Copy files to Samba + - name: Install smbclient run: | - cp -r ./* /mnt/samba/letsencrypt/config/www/sinia # Customize this line based on the source and destination paths + sudo 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/nginx/www/dev/sinia\"; lcd \"./\"; prompt; recurse; mput *" + - - name: Unmount Samba share - run: umount /mnt/samba \ No newline at end of file