Skip to content

fix: ne lancer le déploiement (CI) que sur le compte lyontechhub (#120) #40

fix: ne lancer le déploiement (CI) que sur le compte lyontechhub (#120)

fix: ne lancer le déploiement (CI) que sur le compte lyontechhub (#120) #40

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
environment: github-pages
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm ci
- run: npm run build
- name: Deploy
if: ${{ github.ref == 'refs/heads/dev' && github.event_name != 'pull_request' && github.repository == 'lyontechhub/lyontechhub.github.io' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public