Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tetrapod418 authored Feb 28, 2025
0 parents commit a3061e1
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v4

- name: Convert Markdown into HTML and PDF
uses: KoharaKazuya/marp-cli-action@v4

- name: Uploade artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./

deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Marp CLI Action template

A template repository for [Marp CLI Action](https://github.com/KoharaKazuya/marp-cli-action).

Details:

- [Marp](https://marp.app/)
- [Marp CLI Action](https://github.com/KoharaKazuya/marp-cli-action)

You can write and put Marp markdown files into this repository, then commit and push to GitHub.
GitHub Actions workflow automatically generates slide deck (HTML and PDF) and publishes them on GitHub Pages.

After creating a repository using this template, please follow the steps below.

1. Open `Settings` in your repository.
2. Open `Pages`.
3. Select `GitHub Actions` in `Build and deployment` - `Source`.
19 changes: 19 additions & 0 deletions slide-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
marp: true
---

# Slide 1 <!-- fit -->

---

## This is an example slide deck.

See...

- [Marp](https://marp.app/)
- [Marp CLI Action](https://github.com/KoharaKazuya/marp-cli-action)

---

You can write and put Marp markdown files into this repository, then commit and push to GitHub.
GitHub Actions workflow automatically generates slide deck (HTML and PDF) and publishes them on GitHub Pages.
8 changes: 8 additions & 0 deletions slide-2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
marp: true
theme: uncover
class:
- invert
---

# Slide 2 <!-- fit -->

0 comments on commit a3061e1

Please sign in to comment.