Moved some slides around, broke some slides up. #5
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: Marp Workflow | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository code. | |
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}') npm run build:all | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: slides | |
path: | | |
dist/*.pdf | |
dist/*.pptx | |
- name: Update username config. | |
run: git config --local user.name "github-actions[bot]" | |
- name: Update the user email config. | |
run: git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Stage changed files. | |
run: git add dist/* | |
- name: Commit changed files. | |
run: git commit -m "Auto updating presentation files." | |
- name: Push code to main | |
run: git push origin main |