Files
testrepo/.gitea/workflows/build.yaml
T
Romane 2d29719eee
Build marp presentation / build marp presentation (push) Failing after 1m25s
use marp docker image for rendering
2026-05-07 18:07:08 +02:00

29 lines
944 B
YAML

name: Build marp presentation
on: push
jobs:
build:
name: build marp presentation
runs-on: ubuntu-latest
steps:
- name: build html presentation
working-directory: ./presentation
uses: docker://marpteam/marp-cli:latest
with:
args: ./presentation.md -o ./index.html --html --theme-set ./themes --
- name: build pdf presentation
working-directory: ./presentation
uses: docker://marpteam/marp-cli:latest
with:
args: --html --allow-local-files -o presentation.pdf --theme-set ./themes --
- 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 }}"