Skip to content

Commit

Permalink
#8 Merge pull request from a-lab-nagoya/astropenguin/issue7
Browse files Browse the repository at this point in the history
Publish slides
  • Loading branch information
astropenguin authored Jul 11, 2023
2 parents 94bab80 + 10a07a5 commit a9bdcbf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: GitHub Pages

on:
release:
types:
- created

jobs:
job:
name: GitHub Pages
runs-on: ubuntu-latest
container: node:20.2
steps:
- uses: actions/checkout@v3
- name: Build HTML slides
run: |
npm install
npx marp slides.md -o build/index.html
- names: Publish HTML slides
uses: peaceiris/actions-gh-pages@v3
with:
destination_dir: ${{ GITHUB_REF_NAME }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: build
5 changes: 4 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ jobs:
container: node:20.2
steps:
- uses: actions/checkout@v3
- run: npm install && npx marp slides.md
- name: Build HTML slides
run: |
npm install
npx marp slides.md
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@marp-team/marp-cli": "^3.1.0"
"@marp-team/marp-cli": "^3.0"
}
}

0 comments on commit a9bdcbf

Please sign in to comment.