Skip to content

Commit e970642

Browse files
committed
env: test ci
1 parent d897dd2 commit e970642

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
# Step 1: Checkout the repository
1817
- name: Checkout repository
1918
uses: actions/checkout@v4
2019

21-
# Step 2: Set up environment variables
22-
- name: Set up environment variables
20+
- name: Set up environment
2321
run: echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
2422

25-
# Step 3: Generate Marp documentation
2623
- name: Generate Marp slides
2724
run: |
2825
docker run --rm \
@@ -32,25 +29,22 @@ jobs:
3229
marpteam/marp-cli:v3.2.0 \
3330
--theme talk/theme.css talk/slides.md --html
3431
35-
# Save output for deployment
3632
mkdir -p .deploy
3733
cp talk/slides.html .deploy/index.html
3834
[ -d talk/figures ] && cp -r talk/figures .deploy/figures
35+
[ -f talk/theme.css ] && cp talk/theme.css .deploy/theme.css
3936
40-
# Step 4: Switch to gh-pages branch
4137
- name: Switch to gh-pages branch
4238
run: |
4339
git fetch origin gh-pages || true
4440
git checkout -B gh-pages origin/gh-pages || git checkout --orphan gh-pages
4541
git reset --hard
4642
rm -rf *
4743
48-
# Step 5: Deploy to GitHub Pages
49-
- name: Deploy generated slides
44+
- name: Deploy to GitHub Pages
5045
run: |
5146
cp -r .deploy/* .
52-
git add index.html
53-
git add -f figures || true
47+
git add -A
5448
git config user.name "github-actions[bot]"
5549
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
5650
git commit -m "Deploy Marp slides [skip ci]" || echo "No changes to commit"

0 commit comments

Comments
 (0)