Revert "Revert "chores(analytics): replace Tarteaucitron by raw GTM"" #161
This file contains 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: Build and deploy project | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
# links this workflow to the deployments page on your repository | |
name: github-pages | |
# attaches the deployed URL to this job on the workflow summary | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "^18.12.1" | |
cache: "npm" | |
- run: npm ci | |
- run: npm run build | |
- name: "Upload Pages artifact" | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: build | |
- name: "Deploy to GitHub Pages" | |
id: deployment | |
uses: actions/deploy-pages@v1 |