Skip to content

Fix GitHub pages deployment #276

Fix GitHub pages deployment

Fix GitHub pages deployment #276

Workflow file for this run

name: Build
on:
pull_request:
workflow_dispatch:
workflow_call:
inputs:
assets_path:
type: string
description: 'Path to load static assets'
required: false
default: ''
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }}
FORMSPREE_ID: ${{ secrets.FORMSPREE_ID }}
HOTJAR_ID: ${{ secrets.HOTJAR_ID }}
HOTJAR_SNIPPET_VERSION: ${{ secrets.HOTJAR_SNIPPET_VERSION }}
ASSETS_BASE_PATH: ${{ github.event.inputs.assets_path || ''}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: |
npm pkg delete scripts.prepare
npm ci
- name: Lint
run: |
npm run lint
npm run lint:editorconfig
- name: Build
run: npm run build
- name: Check seo
run: npm run check-seo
- name: e2e
uses: cypress-io/github-action@v5
with:
build: npm run build
start: npm start
record: false
- name: Upload build results
uses: actions/upload-artifact@v4
with:
name: build
path: out