-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.06 KB
/
gh-pages.deploy.yml
File metadata and controls
42 lines (38 loc) · 1.06 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Get files
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache packages
run: npm cache clean --force
- name: Install packages
run: npm install
- name: Jekyll Install
run: sudo gem install jekyll
- name: Bundler install
run: sudo gem install bundler
- name: Bundler install Package
run: sudo bundler install
- name: Build project
run: npm run build
- name: Run Lighthouse 💡
uses: treosh/lighthouse-ci-action@v3
with:
configPath: "./lighthouserc.json"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site