Merge pull request #23 from Dibeo/main #21
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 on GitHub Pages | |
| on: | |
| push: | |
| branches: ["deploy"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout du code | |
| uses: actions/checkout@v4 | |
| - name: Configuration de Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Installation des dépendances | |
| run: npm install | |
| - name: Build de l'application | |
| run: npm run build | |
| - name: Configuration de GitHub Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload de l'artefact (le dossier dist) | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './dist' | |
| - name: Déploiement sur GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |