Skip to content

Merge pull request #162 from betagouv/dependabot/npm_and_yarn/eslint-… #110

Merge pull request #162 from betagouv/dependabot/npm_and_yarn/eslint-…

Merge pull request #162 from betagouv/dependabot/npm_and_yarn/eslint-… #110

Workflow file for this run

name: Continuous deployment to github pages https://betagouv.github.io/mes-aides-analytics/
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- name: Build
run: |
npm ci
npm run build
touch out/.nojekyll
- name: Export build
uses: actions/upload-pages-artifact@v1
with:
path: ./out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2