Envoie le nom d'une campagne manuelle pour éviter les requêtes ultéri… #34
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: Continuous deployment to github pages | |
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 | |
env: | |
NEXT_PUBLIC_SUPABASE_URL: https://gytkhixdulljndwfiduz.supabase.co | |
NEXT_PUBLIC_SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imd5dGtoaXhkdWxsam5kd2ZpZHV6Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3Mjk2NzUzNDIsImV4cCI6MjA0NTI1MTM0Mn0.Y1OiujK1MgR5ZWC_N04TWKvu6Bj6HLfSqsuW8LWEy5g | |
- 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 |