Skip to content

Commit 14cd2fa

Browse files
author
hjonin
committed
gh-1 add deployment to production
1 parent ab97887 commit 14cd2fa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/preproduction.yml renamed to .github/workflows/production.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Deploy code.gouv.fr website to preproduction
1+
name: Deploy code.gouv.fr website to production
22

33
on:
44
# Runs on pushes targeting the default branch
55
push:
6-
branches: ["main"]
6+
branches: ["production"]
77

88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build with Eleventy
2525
run: |
2626
npm install
27-
npm run build-preproduction
27+
npm run build-production
2828
- name: Index site for pagefind
2929
run: npm run postbuild
3030
- uses: actions/upload-artifact@v3
@@ -47,6 +47,6 @@ jobs:
4747
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
4848
ARGS: "-av --delete"
4949
SOURCE: _site/
50-
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
51-
REMOTE_USER: ${{ secrets.REMOTE_USER }}
52-
TARGET: ${{ secrets.REMOTE_TARGET }}
50+
REMOTE_HOST: ${{ secrets.REMOTE_HOST_PROD }}
51+
REMOTE_USER: ${{ secrets.REMOTE_USER_PROD }}
52+
TARGET: ${{ secrets.REMOTE_TARGET_PROD }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Mission logiciels libres et communs numériques",
55
"scripts": {
66
"build": "npx @11ty/eleventy",
7-
"build-preproduction": "npx @11ty/eleventy",
7+
"build-production": "npx @11ty/eleventy",
88
"postbuild": "npx -y pagefind --source _site/",
99
"start": "npx @11ty/eleventy --serve --quiet",
1010
"debug": "DEBUG=Eleventy* npx @11ty/eleventy",

0 commit comments

Comments
 (0)