From dfee6d0f5301eb24fab873e6b30b0ea30933c6df Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 27 Feb 2024 11:32:07 +0100 Subject: [PATCH 1/2] Placer un robot.txt en recette pour empecher les robots d'indexer l'environnements de test --- .github/workflows/deploy-recette.yml | 5 +++++ robot.txt | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 robot.txt diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index c6586be..fa5020a 100644 --- a/.github/workflows/deploy-recette.yml +++ b/.github/workflows/deploy-recette.yml @@ -63,6 +63,11 @@ jobs: with: source: ".htaccess" target: "build/.htaccess" + - name: copy robot.txt + uses: canastro/copy-file-action@master + with: + source: "robot.txt" + target: "build/robot.txt" - name: Upload release bundle as artifact uses: actions/upload-artifact@v3 with: diff --git a/robot.txt b/robot.txt new file mode 100644 index 0000000..77470cb --- /dev/null +++ b/robot.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file From a17414b6462d34e974e17315308dcc5daf33fb8e Mon Sep 17 00:00:00 2001 From: morgan Date: Tue, 27 Feb 2024 14:09:00 +0100 Subject: [PATCH 2/2] modification des noms de fichier robots --- .github/workflows/deploy-recette.yml | 6 +++--- robot.txt => robots-recette.txt | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename robot.txt => robots-recette.txt (100%) diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index fa5020a..4865c6d 100644 --- a/.github/workflows/deploy-recette.yml +++ b/.github/workflows/deploy-recette.yml @@ -63,11 +63,11 @@ jobs: with: source: ".htaccess" target: "build/.htaccess" - - name: copy robot.txt + - name: copy robots.txt uses: canastro/copy-file-action@master with: - source: "robot.txt" - target: "build/robot.txt" + source: "robots-recette.txt" + target: "build/robots.txt" - name: Upload release bundle as artifact uses: actions/upload-artifact@v3 with: diff --git a/robot.txt b/robots-recette.txt similarity index 100% rename from robot.txt rename to robots-recette.txt