Migrate to forgejo
This commit is contained in:
parent
f8e206ac2e
commit
0ac3356f3a
5 changed files with 94 additions and 128 deletions
31
.forgejo/workflows/deploy.yml
Normal file
31
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue