File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 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
66on :
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
You can’t perform that action at this time.
0 commit comments