-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (36 loc) · 1.11 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Deploy to Cloudflare
on:
push:
branches:
- develop
branches-ignore:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to Cloudflare
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build Quasar app
run: npm run build
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist/pwa --project-name=celebrityfanalyzer
- name: Wait for 3 minutes
run: sleep 180 # Sleep for 180 seconds (3 minutes)
- name: Run Lighthouse on urls and validate with lighthouserc
uses: treosh/lighthouse-ci-action@v12
with:
urls: ${{ steps.deploy.outputs.deployment-url }}
configPath: './.github/workflows/lighthouserc.json'
runs: 3