Skip to content

Commit 8b7d0a0

Browse files
authored
Update pages.yaml
1 parent 90b1580 commit 8b7d0a0

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/pages.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
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
71
name: Deploy Jekyll site to Pages
82

93
on:
@@ -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

Comments
 (0)