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",