-
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
Showing
2 changed files
with
62 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,35 @@ | ||
name: render-talks-with-marp | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- "_talks/**" | ||
|
||
jobs: | ||
render-talks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build talks | ||
uses: docker://marpteam/marp-cli:v2.0.4 | ||
with: | ||
args: -I _talks/ --output talks/ | ||
env: | ||
MARP_USER: root:root | ||
- name: Push to Branch | ||
run: | | ||
git config user.name 'marp talks build' | ||
git config user.email '[email protected]' | ||
git checkout -b "talks-${{github.run_id}}" | ||
git add talks/ | ||
git commit -m "feat: Add rendered talks" | ||
git push --set-upstream origin "talks-${{github.run_id}}" | ||
- name: Open PR | ||
run: | | ||
curl -X POST \ | ||
-f \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | ||
https://api.github.com/repos/hydrotian/hydrotian.github.io/pulls \ | ||
-d '{"title":"Add rendered talks","body":"Adding rendered talks","head":"talks-${{github.run_id}}","base":"master"}' |
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,27 @@ | ||
--- | ||
marp: true | ||
theme: gaia | ||
class: invert | ||
# Header configuring this as marp slides | ||
# Theme and class simply defining my preferred dark theme for slides | ||
--- | ||
|
||
<!-- A slide with a title --> | ||
# These are some sample markdown slides | ||
|
||
--- | ||
|
||
<!-- Three dash breaks start a new slide --> | ||
<!-- This one just has some text and a link --> | ||
|
||
They're created using [marp](https://marp.app/) | ||
|
||
--- | ||
|
||
<!-- Another slide with some bullet points --> | ||
|
||
* They're rendered from markdown to HTML using the [marp-cli docker container](https://github.com/marp-team/marp-cli#docker). | ||
|
||
* The rendered slides are deployed as part of my website. | ||
|
||
* This happens in a [github action](https://github.com/UnseenWizzard/unseenwizzard.github.io/blob/8d812ca33bfac4106ddf5f58512740e925c835fa/.github/workflows/render-slides.yaml). |