More debug #15
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: Build presentations | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "git-advanced/presentation/content/*.md" | |
- "gitlab-ci/presentation/content/**.md" | |
- ".github/workflows/build-prez.yml" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
merge-source-files: | |
strategy: | |
matrix: | |
include: | |
- name: merge-git-advanced | |
source-config-path: git-advanced/presentation/config.json | |
output-path: git-advanced/presentation/content/output/ | |
- name: merge-gitlab-ci | |
source-config-path: gitlab-ci/presentation/config.json | |
output-path: gitlab-ci/presentation/jour-*/output/ | |
uses: ./.github/workflows/merge-sources-files.yml | |
name: ${{ matrix.name }} | |
with: | |
source-config-path: ${{ matrix.source-config-path }} | |
output-path: ${{ matrix.output-path }} | |
secrets: inherit | |
build: | |
runs-on: ubuntu-latest | |
needs: merge-source-files | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Marp CLI | |
uses: robinraju/release-downloader@v1.10 | |
with: | |
repository: "marp-team/marp-cli" | |
fileName: "marp-cli-*-linux.tar.gz" | |
latest: true | |
extract: true | |
- name: Download merged files | |
uses: actions/download-artifact@v4 | |
with: | |
merge-multiple: true | |
path: dist/ | |
- name: Debug | |
run: ls -lA dist/ | |
- name: Debug | |
run: tree dist/ | |
- name: Generate HTML files | |
run: | | |
./marp -I dist/ --allow-local-files --output _site --html | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |