Initial actions

This commit is contained in:
Arne Vlaeminck
2023-07-24 00:14:30 +02:00
parent b566634be9
commit 7b69345e6e
3 changed files with 94 additions and 1 deletions

29
workflows/copy.yaml Normal file
View 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