diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml new file mode 100644 index 0000000..7047697 --- /dev/null +++ b/.github/workflows/deploy-to-gh-pages.yml @@ -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: .