From e3ff9c910d8eca579a3f9ad7747a038139d07676 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Sat, 18 Mar 2023 14:44:34 +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 | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 6de5353..ce48c23 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -7,7 +7,7 @@ on: jobs: deploy: - runs-on: docker://act-runner + runs-on: act-runner-user steps: - name: clone uses: actions/checkout@v3 @@ -24,23 +24,9 @@ jobs: run: hugo --minify --gc --baseURL "https://cantorgymnasium.de/" - name: deploy - uses: https://git.cantorgymnasium.de/gcg/rsync-deploy-action@main - with: - HOST: cantorgymnasium.de - PORT: ${{secrets.WEB_PUSH_PORT }} - USER: web-push - 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=. + run: | + pagefind --source=. + rsync -azr --delete public/ /opt/data/webdata/gcg-website-gt/ - name: notification uses: https://github.com/yamaks2306/telegram-notification@main