Some checks failed
Build Webpage / Render and Deploy to wiai.de (push) Has been cancelled
23 lines
1.6 KiB
YAML
23 lines
1.6 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-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
token: ${{ secrets.TOKEN}}
|
|
- run: apt update && apt install -yqq python3 zip python3-pip python3-venv libxml2-dev libxslt-dev python3-dev gcc wget tar
|
|
- run: wget -qO- https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-linux-amd64.tar.gz | tar xz --strip-components=1 -C /usr/local/bin pandoc-2.19.2/bin/pandoc
|
|
- run: cd onpoint && python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt && cd .. && 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
|