From 5c1f8d47754065f852a25e7a2d93b8b1336acd97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne=20Jonin?= Date: Tue, 16 Jan 2024 11:26:36 +0100 Subject: [PATCH] Restore preproduction.yml workflow --- .../workflows/{production.yml => preproduction.yml} | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename .github/workflows/{production.yml => preproduction.yml} (72%) diff --git a/.github/workflows/production.yml b/.github/workflows/preproduction.yml similarity index 72% rename from .github/workflows/production.yml rename to .github/workflows/preproduction.yml index c17a58ed..bdf1c99b 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/preproduction.yml @@ -1,8 +1,8 @@ -name: Deploy code.gouv.fr website to production +name: Deploy code.gouv.fr website to preproduction on: push: - branches: ["production"] + branches: ["main"] jobs: build: @@ -22,7 +22,7 @@ jobs: - name: Build with Eleventy run: | npm install - npm run build-production + npm run build-preproduction - name: Index site for pagefind run: npm run postbuild - name: Deploy to Server @@ -31,6 +31,6 @@ jobs: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} # must be in PEM format ARGS: "-av --delete" SOURCE: _site/ - REMOTE_HOST: ${{ secrets.REMOTE_HOST_PROD }} - REMOTE_USER: ${{ secrets.REMOTE_USER_PROD }} - TARGET: ${{ secrets.REMOTE_TARGET_PROD }} + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.REMOTE_TARGET }} diff --git a/package.json b/package.json index b4788ed7..abf9b3fd 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Mission logiciels libres et communs numériques", "scripts": { "build": "npx @11ty/eleventy", - "build-production": "npx @11ty/eleventy", + "build-preproduction": "npx @11ty/eleventy", "postbuild": "npx pagefind --site _site/ --output-subdir \"_pagefind\"", "start": "npx @11ty/eleventy --serve --quiet", "debug": "DEBUG=Eleventy* npx @11ty/eleventy",