added auto deploy
Some checks failed
Copy Files to Samba Share dev / Copy Files (push) Failing after 32s
Some checks failed
Copy Files to Samba Share dev / Copy Files (push) Failing after 32s
This commit is contained in:
30
.gitea/workflows/deploy-dev.yaml
Normal file
30
.gitea/workflows/deploy-dev.yaml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Copy Files to Samba Share dev
|
||||||
|
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: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
|
||||||
|
- name: Build application
|
||||||
|
run: |
|
||||||
|
npm run build -- --configuration production --base-href /ontvlambaar/
|
||||||
|
|
||||||
|
- name: Copy
|
||||||
|
run: |
|
||||||
|
smbclient //192.168.129.245/homes/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c "cd \"letsencrypt/config/www/cptarn/ontvlambaar\"; lcd \"dist/ontvlambaar/\"; prompt; recurse; mput *"
|
||||||
Reference in New Issue
Block a user