Skip to content

feat: Accessibility #503

feat: Accessibility

feat: Accessibility #503

Workflow file for this run

name: Github Pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, 'wip')"
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.1.1
with:
node-version: ${{ matrix.node-version }}
- name: Install and build
run: |
yarn install
yarn build
publish:
needs: [build]
runs-on: ubuntu-18.04
if: "! contains(github.event.head_commit.message, 'wip')"
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3.0.2
with:
fetch-depth: 0
- uses: actions/setup-node@v3.1.1
with:
node-version: ${{ matrix.node-version }}
- name: Deploy to Github Pages
run: |
yarn install
yarn deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lighthouse-check:
needs: [publish]
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, 'wip')"
steps:
- uses: actions/checkout@v3.0.2
- run: mkdir /tmp/artifacts
- name: Run Lighthouse
uses: foo-software/lighthouse-check-action@master
id: lighthouseCheck
with:
outputDirectory: /tmp/artifacts
urls: 'https://chendachao.github.io,https://chendachao.netlify.app/,https://chendachao-github-io.chendachao.vercel.app/'
slackWebhookUrl: ${{ secrets.LIGHTHOUSE_CHECK_WEBHOOK_URL }}
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: /tmp/artifacts