Skip to content

Clarify README.md

Clarify README.md #2

Workflow file for this run

name: marp-to-pages
concurrency: marp-to-pages
on:
push:
branches: [ main ]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Ensure build dir exists
run: mkdir -p build
- name: Copy images directory
run: cp -R assets build/assets
- name: Marp Build
uses: docker://marpteam/marp-cli:v3.0.2
with:
args: slides.md --html -o build/index.html
env:
MARP_USER: root:root
- name: Deploy preview
if: ${{ github.event_name == 'pull_request' }}
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/
preview-branch: gh-pages
umbrella-dir: pr-preview
- 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/