mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-28 07:51:20 +00:00
31 lines
866 B
YAML
31 lines
866 B
YAML
name: Unlighthouse SEO Reports
|
|
|
|
on:
|
|
[deployment_status]
|
|
|
|
jobs:
|
|
e2e:
|
|
if: github.event.deployment_status.state == 'success'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install Dependencies
|
|
run: yarn global add @unlighthouse/cli puppeteer
|
|
|
|
- name: Build Unlighthouse report
|
|
run: unlighthouse-ci --site ${{ github.event.deployment_status.target_url }} --build-static
|
|
|
|
- name: Deploy report to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: './.unlighthouse'
|
|
publish_branch: gh-pages
|
|
publish_dir_prefix: ${{ github.head_ref }}
|