Skip to content

Commit

Permalink
Restore preproduction.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hjonin committed Jan 16, 2024
1 parent 83bdcb9 commit 5c1f8d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5c1f8d4

Please sign in to comment.