forked from aferreira-deo/jftl-lighthouse-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (24 loc) · 960 Bytes
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
- name: Install necessary packages
run: npm install
- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v11
with:
url: "https://lucashimpens.io/jftl-lighthouse-workshop/"
configPath: './lighthouserc.js'
temporaryPublicStorage: true # upload lighthouse report to the temporary storage