Files
git-course-notes/.gitea/workflows/gitea-pages.yaml
T
bruhn_b 5b0eb24af3
Build and Publish Site / docker (push) Successful in 4s
basic structure for git course page
Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
2026-06-08 11:00:53 +02:00

34 lines
840 B
YAML

name: Build and Publish Site
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest-intranet
container:
image: gitea.psi.ch/images/alpine-zensical
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build page
run: /opt/python-env/bin/zensical build
- name: Configure Git
run: |
git config --global user.name "Gitea Actions"
git config --global user.email "actions@gitea.local"
- name: Push to gitea-pages branch
run: |
git checkout --orphan gitea-pages
git reset --hard
mv site/* .
git add .
git commit -m "Update site - $(date)"
git push -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git gitea-pages