Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build_advanced_slides.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build Marp Slides PDF

on:
pull_request:
paths:
- "advanced/slides/**"
- "slides_theme/**"
- ".github/workflows/build_advanced_slides.yml"
- "!advanced/slides/slides_advanced.pdf"

workflow_dispatch:

permissions:
contents: write

jobs:
build-pdf:
runs-on: ubuntu-latest

steps:
- name: Check out PR branch
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Build PDF
run: |
npx @marp-team/marp-cli@latest advanced/slides/slides.md \
--theme-set slides_theme/c2sm-light.css slides_theme/c2sm-dark.css \
--pdf \
--allow-local-files \
-o advanced/slides/slides_advanced.pdf

- name: Commit updated PDF to PR branch
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"

git add advanced/slides/slides_advanced.pdf
if git diff --cached --quiet; then
echo "PDF is already up to date."
else
git commit -m "Update advanced slides PDF"
git push origin HEAD:${{ github.head_ref }}
fi
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
*/work
.DS_Store
git-course_env/
.vscode/
.vscode/*.log
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"markdown.marp.themes": [
"./slides_theme/c2sm.css",
"./slides_theme/c2sm-light.css",
"./slides_theme/c2sm-dark.css"
]
}
Binary file added advanced/slides/images/achtung.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/git_bisect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/git_cherry_pick.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/git_merge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/git_rebase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/git_stash_pop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/git_workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/gitignore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/nested_repo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/parent_repos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/tweet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/workflow_branch_level.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/workflow_fundamentals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added advanced/slides/images/worktree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading