Skip to content

Commit

Permalink
add deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Dec 26, 2023
1 parent 1a70e54 commit 443ca78
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-to-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Deploy to github pages"

on:
push:
branches:
- master
pull_request:

jobs:
Pandoc-Build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository content
uses: actions/checkout@v4

- name: generate slidy using pandoc
uses: docker://pandoc/core:3
with:
args: "--self-contained -t slidy -o slidesDutch.tmp slides/slidesDutch.md"

- name: attach pre- and post to generated html file
run: cat slides/pre.html slidesDutch.tmp slides/post.html > index.html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .

0 comments on commit 443ca78

Please sign in to comment.