31 lines
654 B
YAML
31 lines
654 B
YAML
name: Deploy to Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
pull_request:
|
|
branches: ['main']
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: 'pages'
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Validate static frontend
|
|
run: |
|
|
test -f frontend/index.html
|
|
test -f frontend/fizika.json
|
|
|
|
- name: Copy frontend to host pages mount
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
run: |
|
|
apt update && apt install -y rsync
|
|
mkdir -p /pages
|
|
rsync -a --delete frontend/ /pages/fizika
|