List C# tests #38
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 and Deploy Slides | |
on: | |
push: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Slides | |
runs-on: windows-latest | |
steps: | |
- id: checkout-code | |
name: Checkout | |
uses: actions/checkout@v4 | |
- id: marp-build | |
name: Render Slides with Marp | |
shell: pwsh | |
run: | | |
# Install Scoop | |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
iex "& {$(irm get.scoop.sh)} -RunAsAdmin" | |
scoop update | |
scoop -v | |
# Install Marp | |
scoop install marp | |
marp -v | |
# Generate slides | |
marp --allow-local-files --html -I ./Slides/ -o ./Slides/bin --pdf | |
- id: configure-pages | |
name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- id: upload-artifact | |
name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./Slides/bin | |
deploy: | |
name: Deploy Website | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deploy-pages.outputs.page_url }} | |
needs: build | |
steps: | |
- id: deploy-pages | |
name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |