Files
testrepo/.gitea/workflows/build.yaml
T
Romane 0113275193
Build marp presentation / build marp presentation (push) Failing after 6s
remove working dir?
2026-05-07 18:33:25 +02:00

31 lines
1.0 KiB
YAML

name: Build marp presentation
on: push
jobs:
build:
name: build marp presentation
runs-on: ubuntu-latest
steps:
- name: build html presentation
uses: docker://marpteam/marp-cli:latest
with:
args: ./presentation/presentation.md --html --allow-local-files -o ./presentation/index.html --html --theme-set ./presentation/themes --
env:
MARP_USER: root:root
- name: build pdf presentation
uses: docker://marpteam/marp-cli:latest
with:
args: ./presentation/presentation.md --html --allow-local-files -o ./presentation/presentation.pdf --theme-set ./presentation/themes --
env:
MARP_USER: root:root
- name: compress as zip
run: |
zip -r ../presentation.zip .
- name: upload to pages
run: |
curl -X PUT --fail \
https://pages.ct.cozytren.ch/testrepo \
-T ./presentation.zip \
-H "Content-Type: application/zip" \
-H "Authorization: Pages ${{ secrets.GIT_PAGES_TOKEN }}"