1- # This workflow uses actions that are not certified by GitHub.
2- # They are provided by a third-party and are governed by
3- # separate terms of service, privacy policy, and support
4- # documentation.
5-
6- # Sample workflow for building and deploying a Jekyll site to GitHub Pages
71name : Deploy Jekyll site to Pages
82
93on :
@@ -30,29 +24,25 @@ jobs:
3024 - name : Checkout repository
3125 uses : actions/checkout@v4
3226
33- - name : Setup Ruby environment
27+ # Installe Ruby ET les dépendances du Gemfile en une seule étape
28+ - name : Setup Ruby
3429 uses : ruby/setup-ruby@v1
3530 with :
3631 ruby-version : ' 3.3'
37- bundler-cache : true
38- bundler : ' 2.5.9'
39-
40- - name : Install dependencies
41- run : |
42- bundle config set path 'vendor/bundle'
43- bundle install
44- working-directory : docs
32+ bundler-cache : true
4533
34+ # Configure l'URL de base pour GitHub Pages
4635 - name : Setup GitHub Pages
4736 id : pages
4837 uses : actions/configure-pages@v5
4938
39+ # Construit le site depuis la racine du projet
5040 - name : Build Jekyll site
51- run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
41+ run : bundle exec jekyll build --source ./docs --destination ./docs/_site -- baseurl "${{ steps.pages.outputs.base_path }}"
5242 env :
5343 JEKYLL_ENV : production
54- working-directory : docs
5544
45+ # Met en ligne l'artefact construit
5646 - name : Upload artifact to GitHub Pages
5747 uses : actions/upload-pages-artifact@v3
5848 with :
0 commit comments