From 5745bcc7faccfca1c9f6ad027acb95341282a1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Thu, 27 Nov 2025 15:57:41 +0100 Subject: [PATCH] ci: overwrite folder without merge --- .github/workflows/publish-docs.yml | 11 +++++++++++ docs/src/content/docs/en/developing/testing.mdx | 1 + 2 files changed, 12 insertions(+) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 9d9749e..b10b158 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -31,6 +31,17 @@ jobs: run: yarn run build working-directory: docs + + - name: Clean target folder on server + uses: appleboy/ssh-action@v1 + with: + host: dw1.srv.domainwatchdog.eu + port: 2004 + username: deploy + key: ${{ secrets.DEPLOYER_PRIVATE_KEY }} + script: | + rm -rf /var/www/domainwatchdog.eu/* + - name: Upload build via SCP uses: appleboy/scp-action@master with: diff --git a/docs/src/content/docs/en/developing/testing.mdx b/docs/src/content/docs/en/developing/testing.mdx index 0311dc2..27c5a0f 100644 --- a/docs/src/content/docs/en/developing/testing.mdx +++ b/docs/src/content/docs/en/developing/testing.mdx @@ -2,3 +2,4 @@ title: Software Testing description: Discover how to launch and write unit and integration tests for this project using PHPUnit and a test database. --- +