Skip to content

Commit 07835ef

Browse files
Update static.yml
1 parent 9a34bff commit 07835ef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/static.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ jobs:
1818
deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21-
# Schritt 1: Checkout nur der notwendigen Dateien (Sparse Checkout)
21+
# Schritt 1: Checkout des Repositorys
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424
with:
25-
fetch-depth: 1
26-
sparse-checkout: |
27-
/path/to/static/files/**
25+
fetch-depth: 1 # Nur den letzten Commit auschecken
2826

2927
# Schritt 2: Kopieren der statischen Dateien in das Public-Verzeichnis
3028
- name: Prepare Content
3129
run: |
3230
mkdir -p public
33-
rsync -av --delete . public/
31+
rsync -av --delete --exclude='.github/' --exclude='README.md' ./ ./public/
32+
# Optional: Weitere Ausschlüsse hinzufügen, falls nötig
3433
3534
# Schritt 3: Setup Pages
3635
- name: Setup Pages

0 commit comments

Comments
 (0)