no mermaid #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.md" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
jobs: | |
# prepare: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Install Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# cache: npm | |
# node-version-file: ".nvmrc" | |
# - name: Install dependencies | |
# run: npm ci | |
# - name: Copy assets | |
# run: npm copy | |
build: | |
# needs: prepare | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
folder: | |
#- kurz_Einfuehrung | |
#- material_science_de_lecture_01 | |
#- material_science_de_lecture_02 | |
#- material_science_de_lecture_03 | |
#- material_science_de_lecture_04 | |
#- material_science_de_lecture_05 | |
- wst_mb_01 | |
- wst_mb_02 | |
- wst_mb_03 | |
- wst_mb_04 | |
- wst_mb_05 | |
- wst_mb_06 | |
- wst_mb_07 | |
- wst_mb_08 | |
- wst_mb_09 | |
- wst_mb_10 | |
- wst_mb_11 | |
- wst_mb_12 | |
- mti_ft_01 | |
- mti_ft_02 | |
- mti_ft_03 | |
- mti_ft_04 | |
- mti_ft_05 | |
- mti_ft_06 | |
- mti_ft_07 | |
- mti_ft_08 | |
- mti_ft_09 | |
- mti_ft_10 | |
- mti_ft_11 | |
- mti_ft_12 | |
- stream_wst_01 | |
- stream_wst_02 | |
- stream_wst_03 | |
- stream_wst_04 | |
- stream_wst_05 | |
- stream_wst_06 | |
- stream_wst_07 | |
- stream_wst_08 | |
- stream_wst_09 | |
- stream_wst_10 | |
- stream_wst_11 | |
- composites_01 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: ".nvmrc" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Marp slide deck | |
run: CHROME_PATH=$(npx -y @puppeteer/browsers@latest install chrome@stable --path $(realpath ./tmp) | awk '{print $2}') FOLDER=${{ matrix.folder }} npm run build | |
- run: ls -R public | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
path: public | |
name: ${{ matrix.folder }} | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download page artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: public | |
merge-multiple: true | |
- name: Copy assets | |
run: cp -r assets public/assets | |
- run: ls -R public | |
- name: Upload page artifacts | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: public | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |