fizika/.forgejo/workflows/deploy.yml
Andras Schmelczer 0ac3356f3a
Some checks failed
Deploy to Pages / deploy (push) Successful in 11m44s
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Migrate to forgejo
2026-05-09 21:29:23 +01:00

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