correction lien p1 #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/sitemap.yml | |
| # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
| name: Génération du sitemap (absolu) | |
| on: | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-sitemap: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout du code | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: true | |
| fetch-depth: 0 | |
| - name: Installer Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Générer le sitemap absolu | |
| run: | | |
| npm install sitemap-generator-cli --no-save | |
| npx sitemap-generator-cli \ | |
| https://buonomolea.github.io/portfolio-lea-buonomo/ \ | |
| --output ./sitemap.xml | |
| - name: Commit & push | |
| uses: stefanzweifel/[email protected] | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit_message: "Mise à jour automatique du sitemap" | |
| file_pattern: sitemap.xml | |