Skip to content

Commit

Permalink
create demo-file-generation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisugi authored May 25, 2022
1 parent a15e127 commit 1205b5a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/demo-file-generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: generate demo files

on:
push:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- run: yarn install

- name: generate pdf
run: npx @marp-team/marp-cli demo.md --theme themes/academic.css --pdf --allow-local-files

- name: generate png
run: npx @marp-team/marp-cli demo.md --theme themes/academic.css --images --allow-local-files

- name: commit & push
run: |
if ! git diff --exit-code --quiet
then
git add -A
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "update demo files"
git push
fi

0 comments on commit 1205b5a

Please sign in to comment.