Fixed actions location
Some checks failed
Copy Files to Samba Share / Copy Files (push) Failing after 42s
Some checks failed
Copy Files to Samba Share / Copy Files (push) Failing after 42s
This commit is contained in:
29
.gitea/workflows/copy.yaml
Normal file
29
.gitea/workflows/copy.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
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: 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
|
||||
run: |
|
||||
cp -r ./* /mnt/samba/letsencrypt/config/www/sinia # Customize this line based on the source and destination paths
|
||||
|
||||
- name: Unmount Samba share
|
||||
run: umount /mnt/samba
|
||||
Reference in New Issue
Block a user