diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 7028fba..2193abe 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -12,5 +12,8 @@ steps: - echo "$SSH_STAGING_KEY" > ~/.ssh/staging.key - chmod 600 ~/.ssh/staging.key - ssh -i ~/.ssh/staging.key -p $${PORT} $${USER}@$${HOST} "rm -rf /srv/hadeedahmad-xyz" - - scp -ri ~/.ssh/staging.key -P $${PORT} . $${USER}@$${HOST}:/srv/hadeedahmad-xyz + - scp -ri ~/.ssh/staging.key -P $${PORT} * $${USER}@$${HOST}:/srv/hadeedahmad-xyz secrets: [ SSH_STAGING_KEY ] + when: + - event: push + branch: main