All checks were successful
Deploy to Pages / build (push) Successful in 26s
57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
name: Deploy to Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
|
|
pull_request:
|
|
branches: ['main']
|
|
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: 'pages'
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
|
|
env:
|
|
CI: 'true'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Check formatting
|
|
continue-on-error: true
|
|
run: npm run format:check
|
|
|
|
- name: Test
|
|
run: npm test
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: On main, copy build to host pages mount
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main
|
|
with:
|
|
source: dist
|
|
target: floor-planner
|
|
|
|
- name: Copy build to staging pages mount
|
|
if: github.event_name == 'pull_request'
|
|
uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main
|
|
with:
|
|
source: dist
|
|
target: floor-planner-staging
|