From 8c2684abefa8ef905c97ee74317c7de2047d9696 Mon Sep 17 00:00:00 2001 From: jtbx Date: Thu, 1 Feb 2024 20:11:25 +0100 Subject: [PATCH] CI: Fix deploy on schedule --- .forgejo/workflows/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 04dd8c2..4e03ca1 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -43,7 +43,7 @@ jobs: hugo - name: Deploy - Prepare keys - if: github.event_name == 'push' || github.event_name == 'pull_request' + if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule' run: | echo "${{ secrets.SSH_DEPLOY_KEY }}" > deploykey.priv chmod 400 deploykey.priv @@ -65,7 +65,7 @@ jobs: --data '{ "body": "You can view your changes at https://staging.hamburg.ccc.de/pr${{ github.event.pull_request.number }}/" }' - name: Deploy - Upload to prod - if: github.event_name == 'push' && github.ref_name == 'main' + if: (github.event_name == 'push' || github.event_name == 'schedule') && github.ref_name == 'main' run: | rsync -v -r --delete -e "ssh -i deploykey.priv -o 'UserKnownHostsFile ./known_hosts'" public/ ccchh-website-deploy@public-web-static-intern.hamburg.ccc.de:/var/www/hamburg.ccc.de/