Files
testrepo/.gitea/workflows/build.yaml
T
Romane 09ddeb6881
Build marp presentation / build marp presentation (push) Failing after 0s
test as raw command
2026-05-07 18:27:37 +02:00

37 lines
1.4 KiB
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
run: |
MARP_USER="root:root" docker-entrypoint ./presentation.md --html --allow-local-files -o ./index.html --theme-set ./themes --
#with:
# args: ./presentation.md --html --allow-local-files -o ./index.html --html --theme-set ./themes --
#env:
# MARP_USER: root:root
- name: build pdf presentation
working-directory: ./presentation
uses: docker://marpteam/marp-cli:latest
#with:
# args: ./presentation.md --html --allow-local-files -o ./presentation.pdf --theme-set ./themes --
#env:
# MARP_USER: root:root
run: |
MARP_USER="root:root" docker-entrypoint ./presentation.md --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 }}"