23 lines
1.3 KiB
YAML
23 lines
1.3 KiB
YAML
name: Build Webpage
|
|
run-name: $${{gitea.actor}} - build page
|
|
on:
|
|
push:
|
|
branches:
|
|
- production
|
|
jobs:
|
|
Render and Deploy to wiai.de:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
token: ${{ secrets.TOKEN}}
|
|
- run: apt update && apt install -yqq python3 zip pandoc python3-pip
|
|
- run: cd onpoint && pip3 install -r requirements.txt
|
|
- run: bash deploy.sh
|
|
- run: ls
|
|
- run: cd .. && git clone https://cicd:${{secrets.TOKEN}}@git.stuve-bamberg.de/serverPush/wiai.de.git wiai && cp -r latex-wochenende/css latex-wochenende/js latex-wochenende/lib latex-wochenende/onpoint latex-wochenende/slides.de.html latex-wochenende/svg wiai/latex-wochenende && cp -r latex-wochenende/css latex-wochenende/js latex-wochenende/lib latex-wochenende/onpoint latex-wochenende/slides.en.html latex-wochenende/svg wiai/latex-weekend
|
|
- run: git config --global user.email "fachschaft-wiai.stuve@uni-bamberg.de" && git config --global user.name "FSWIAI CICD Bot"
|
|
- run: cd .. && cd wiai/latex-wochenende && mv slides.de.html index.html && cd ../latex-weekend && mv slides.en.html index.html
|
|
- run: cd ../wiai && git add . && git commit -m "updated latex weekend slides" && git push -u origin main
|