update #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Slides | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
paths: | |
- "src/*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clean previous | |
run: git rm slides/*.html | |
- name: Marp Build (README.pdf) | |
run: npx @marp-team/marp-cli@latest --input-dir src/ --output slides/ | |
env: | |
MARP_USER: root:root | |
- name: Push | |
run: | | |
git pull | |
git config user.name "Slides Builder" | |
git config user.email "<>" | |
git add slides/* | |
git commit -m "build slides" | |
git push | |