Merge pull request #323 from maxulysse/dependabot/npm_and_yarn/markdo… #27
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: | |
| # Allows you to run this workflow manually from the Actions tab on GitHub. | |
| workflow_dispatch: | |
| # Trigger the workflow every time you push to the `main` branch | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "src/**" | |
| - "public/**" | |
| - "astro.config.mjs" | |
| - "package.json" | |
| - "package-lock.json" | |
| - "tsconfig.json" | |
| - ".github/workflows/deploy.yml" | |
| - "!src/data/CV-MGarcia.tex" | |
| - "!src/data/biblio.bib" | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout your repository using git | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: "24" | |
| cache: "npm" | |
| - name: Install dependencies | |
| # TODO: Remove --legacy-peer-deps when @astrojs/check supports TypeScript 6. | |
| run: npm ci --legacy-peer-deps | |
| - name: Build site | |
| run: npm run build | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5 | |
| with: | |
| path: ./dist | |
| include-hidden-files: true | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5 |