Skip to content

Commit 9a5079b

Browse files
committed
Fix CLI sitemap
1 parent 2a13c67 commit 9a5079b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/sitemap.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# .github/workflows/sitemap.yml
22
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
33

4-
name: Génération automatique du sitemap
4+
name: Génération du sitemap (absolu)
55

66
on:
77
push:
@@ -16,30 +16,27 @@ jobs:
1616

1717
steps:
1818
- name: Checkout du code
19-
uses: actions/checkout@v4.2.2
19+
uses: actions/checkout@v4
2020
with:
2121
persist-credentials: true
22-
fetch-depth: 0
22+
fetch-depth: 0
2323

2424
- name: Installer Node.js
2525
uses: actions/setup-node@v3
2626
with:
2727
node-version: '18'
2828

29-
- name: Installer sitemap-generator-cli
30-
run: npm install -g sitemap-generator-cli
31-
3229
- name: Générer le sitemap absolu
3330
run: |
34-
sitemap-generator-cli \
31+
npm install sitemap-generator-cli --no-save
32+
npx sitemap-generator-cli \
3533
https://buonomolea.github.io/portfolio-lea-buonomo/ \
3634
--output ./sitemap.xml
3735
38-
- name: Commit & push le sitemap
36+
- name: Commit & push
3937
uses: stefanzweifel/[email protected]
4038
with:
4139
token: ${{ secrets.GITHUB_TOKEN }}
4240
commit_message: "Mise à jour automatique du sitemap"
4341
file_pattern: sitemap.xml
44-
pull: true
4542

0 commit comments

Comments
 (0)