Skip to content

Commit

Permalink
Github action CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas HIMPENS committed Jun 10, 2024
1 parent 92e6316 commit b366680
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy to GitHub Pages #nom de notre process

on:
push:
branches:
- main #des que cette branche recoit un “push” la CI/CD tournera son job

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4 #il sert a creer notre config pour github pages
with:
github_token: ${{ secrets.GITHUB_TOKEN }} #les workflow permissions qu’on a activé
publish_dir: ./src #fichiers qu’on va publier sur le serveur

0 comments on commit b366680

Please sign in to comment.