Skip to content

Commit 8ece5b0

Browse files
committed
enable scp
1 parent cdf4bb6 commit 8ece5b0

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

.github/workflows/default__deploy-nginx-rsync.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Deploy Nginx rsync
33
on:
44
push:
55
branches:
6-
- 'main'
6+
# - 'main'
7+
- 'disabled-main'
78
tags:
89
- 'v[0-9]+.[0-9]+.[0-9]+'
910
pull_request:
@@ -48,22 +49,6 @@ jobs:
4849
- name: Build nemanjamiticcom
4950
run: pnpm build
5051

51-
- name: Clean up website dir
52-
uses: appleboy/ssh-action@master
53-
with:
54-
host: ${{ secrets.REMOTE_HOST }}
55-
username: ${{ secrets.REMOTE_USERNAME }}
56-
key: ${{ secrets.REMOTE_KEY_ED25519 }}
57-
port: ${{ secrets.REMOTE_PORT }}
58-
script_stop: true
59-
script: |
60-
cd /home/ubuntu/traefik-proxy/apps/nmc-nginx-with-volume/website
61-
echo "Content before deletion: $(pwd)"
62-
ls -la
63-
rm -rf ./*
64-
echo "Content after deletion: $(pwd)"
65-
ls -la
66-
6752
- name: Deploy dist via rsync
6853
uses: burnett01/rsync-deployments@v8
6954
with:

.github/workflows/default__deploy-nginx.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
# Disabled permanently, use rsync action, ./default__deploy-nginx-rsync.yml
66
branches:
7-
- 'disabled-main'
7+
# - 'disabled-main'
8+
- 'main'
89
tags:
910
- 'v[0-9]+.[0-9]+.[0-9]+'
1011
pull_request:

0 commit comments

Comments
 (0)