From b99b7d0ffb3a45a8306bd676d5371ec49fe2ebf1 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Thu, 16 Mar 2023 22:08:24 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.gitea/workflows/prod.yaml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/prod.yaml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 453c7547..6de53530 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -24,17 +24,23 @@ jobs: run: hugo --minify --gc --baseURL "https://cantorgymnasium.de/" - name: deploy - uses: https://git.cantorgymnasium.de/gcg/action-rsync@master - env: + uses: https://git.cantorgymnasium.de/gcg/rsync-deploy-action@main + with: HOST: cantorgymnasium.de - KEY: ${{ secrets.WEB_PUSH_KEY }} - TARGET: /opt/data/webdata/gcg-website-gt/ + PORT: ${{secrets.WEB_PUSH_PORT }} USER: web-push - PORT: 1845 - ARGS: -avzr --delete - VERBOSE: true - SOURCE: ./public/ - POST_SCRIPT: "cd /opt/data/webdata/gcg-website/ && pagefind --source=." + PRIVATE_SSH_KEY: ${{secrets.WEB_PUSH_KEY }} + REPOSITORY_PATH: public/ + SERVER_PATH: /opt/data/webdata/gcg-website-gt/ + + - name: search index + uses: https://github.com/JimCronqvist/action-ssh@master + with: + hosts: ${{ secrets.WEB_PUSH_HOST }} + privateKey: ${{ secrets.WEB_PUSH_KEY }} + command: | + cd /opt/data/webdata/gcg-website/ + pagefind --source=. - name: notification uses: https://github.com/yamaks2306/telegram-notification@main