Skip to content

Merge pull request #682 from globe-and-citizen/develop #157

Merge pull request #682 from globe-and-citizen/develop

Merge pull request #682 from globe-and-citizen/develop #157

Workflow file for this run

name: Deploy to Cloudflare

Check failure on line 1 in .github/workflows/deployment.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deployment.yml

Invalid workflow file

you may only define one of `branches` and `branches-ignore` for a single event
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