Skip to content

Commit

Permalink
try with matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed Mar 17, 2024
1 parent af7ecf0 commit d52db61
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
permissions:
contents: write
jobs:
build:
build-mkdocs:
runs-on: ubuntu-22.04
steps:

Expand All @@ -35,23 +35,39 @@ jobs:
&& mkdir site/pdfs \
&& cp -R img site/slides/img
build_marp:
runs-on: ubuntu-22.04
needs: build-mkdocs
strategy:
matrix:
slides_to_build:
- avd_cvaas

steps:

- name: Build HTML from Marp 🔨
uses: docker://marpteam/marp-cli:v3.0.2
with:
args: --html slides/*.md -o site/slides/
args: --html slides/${{ matrix.slides_to_convert }}.md -o site/slides/${{ matrix.slides_to_convert }}.html
env:
MARP_USER: root:root

- name: Build PDF from marp_slides.md 🔨
uses: docker://marpteam/marp-cli:v3.0.2
with:
args: --html --allow-local-files slides/*.md -o site/pdfs/
args: --html --allow-local-files slides/${{ matrix.slides_to_convert }}.md -o site/pdfs/${{ matrix.slides_to_convert }}.pdf
env:
MARP_USER: root:root

build_marp:
runs-on: ubuntu-22.04
needs: build_marp

steps:

- name: Deploy production 🚀
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./site/
folder: ./site/

0 comments on commit d52db61

Please sign in to comment.