All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 20s
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Build and Deploy Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- root6
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: gitea.psi.ch/images/alpine-jupyterbook
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
apk add doxygen graphviz
|
|
|
|
- name: Build musrfit-tech-docu
|
|
run: |
|
|
cd doc
|
|
mkdir technical
|
|
doxygen musrfit_dox.cfg
|
|
doxygen musredit_qt6_dox.cfg
|
|
doxygen mupp_qt6_dox.cfg
|
|
doxygen musrStep_qt6_dox.cfg
|
|
doxygen musrWiz_qt6_dox.cfg
|
|
|
|
- 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
|
|
cp -r ./doc/technical/html/* .
|
|
git add .
|
|
git commit -m "Deploy site"
|
|
git push --verbose -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git gitea-pages
|