Skip to content

publish workflow

publish workflow #1

Workflow file for this run

name: marp-to-pages
concurrency: marp-to-pages
on:
push:
branches: [ main ]
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Copy images
run: mkdir build && cp -R img build/img
- name: Marp Build (webpage)
uses: docker://marpteam/marp-cli:v2.5.0
with:
args: 37C3_lightningtalk_håck-mas-castle.md -o build/index.html
env:
MARP_USER: root:root
# - name: Marp Build (37C3_lightningtalk_håck-mas-castle.pdf)
# uses: docker://marpteam/marp-cli:v2.5.0
# with:
# args: 37C3_lightningtalk_håck-mas-castle.md --pdf --allow-local-files -o build/37C3_lightningtalk_håck-mas-castle.pdf
# env:
# MARP_USER: root:root
- name: Deploy production
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./build/
clean-exclude: pr-preview/