Generate Slides #4
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: Generate Slides | |
on: | |
workflow_dispatch: | |
inputs: | |
filename: | |
description: 'The name of the markdown file' | |
default: 'presentation.md' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --user mdslides | |
- name: Generate slides | |
run: | | |
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV | |
mdslides [-h] [--include media] [--pdf] [--output_dir DIR] ${{ github.event.inputs.filename }} | |
- name: Upload slides | |
uses: actions/upload-artifact@v2 | |
with: | |
name: slides | |
path: ./slides |