Files
testrepo/.gitea/workflows/build.yaml
T
Romane e80f8c6d09
Build marp presentation / build marp presentation (push) Successful in 7m58s
change npm to npx for marp
2026-05-06 09:45:00 +02:00

36 lines
1.0 KiB
YAML

name: Build marp presentation
on: push
jobs:
build:
name: build marp presentation
runs-on: ubuntu-latest
steps:
- name: restore cache
id: restore-cache
uses: actions/cache@v3
with:
path: /root/.npm
key: node-marp-installation
- name: checkout
uses: actions/checkout@v4
- name: install marp
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
npx @marp-team/marp-cli@latest
- name: cache marp installation
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: /root/.npm
key: node-marp-installation
- name: build presentation
working-directory: ./presentation
run: |
npx @marp-team/marp-cli@latest presentation.md -o index.html
- name: upload presentation folder
uses: https://gitea.com/actions/gitea-upload-artifact@v4
with:
name: presentation.zip
path: presentation/