Update index.html #59
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: Deploy static content to Pages | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
# Minimaler Checkout | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 # Reduziert die Zeit für den Checkout, da nur der letzte Commit geladen wird | |
# Erstelle ein Build-Verzeichnis, wenn nötig | |
- name: Prepare Content | |
run: | | |
mkdir -p public | |
rsync -a --delete . public/ # Kopiere nur relevante Änderungen ins Verzeichnis | |
# Setup für Pages | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
# Nur geänderte Dateien hochladen | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: public | |
# Deploy auf GitHub Pages | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |