Ajout d'un commentaire pour le secret PERSONAL_ACCESS_TOKEN #13
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
| name: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build | |
| - name: Export | |
| run: npm run export | |
| - name: Deploy to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: out | |
| branch: gh-pages | |
| # PERSONAL_ACCESS_TOKEN est un secret GitHub configuré dans les settings du dépôt | |
| token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| clean: true | |
| repository-name: Lemophile/lemophile.github.io |