File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy code.gouv.fr website to preproduction
1
+ name : Deploy code.gouv.fr website to production
2
2
3
3
on :
4
4
# Runs on pushes targeting the default branch
5
5
push :
6
- branches : ["main "]
6
+ branches : ["production "]
7
7
8
8
# Allows you to run this workflow manually from the Actions tab
9
9
workflow_dispatch :
24
24
- name : Build with Eleventy
25
25
run : |
26
26
npm install
27
- npm run build-preproduction
27
+ npm run build-production
28
28
- name : Index site for pagefind
29
29
run : npm run postbuild
30
30
- uses : actions/upload-artifact@v3
47
47
SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
48
48
ARGS : " -av --delete"
49
49
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 }}
Original file line number Diff line number Diff line change 4
4
"description" : " Mission logiciels libres et communs numériques" ,
5
5
"scripts" : {
6
6
"build" : " npx @11ty/eleventy" ,
7
- "build-preproduction " : " npx @11ty/eleventy" ,
7
+ "build-production " : " npx @11ty/eleventy" ,
8
8
"postbuild" : " npx -y pagefind --source _site/" ,
9
9
"start" : " npx @11ty/eleventy --serve --quiet" ,
10
10
"debug" : " DEBUG=Eleventy* npx @11ty/eleventy" ,
You can’t perform that action at this time.
0 commit comments