generated from KoharaKazuya/marp-cli-action-gh-pages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a3061e1
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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`. |
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
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. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
marp: true | ||
theme: uncover | ||
class: | ||
- invert | ||
--- | ||
|
||
# Slide 2 <!-- fit --> |