Skip to content

Update index.yaml

Update index.yaml #6

name: Deploy GitHub Pages
on:
push:
branches:
- gh-pages # This will trigger when you push to the gh-pages branch
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: gh-pages # Explicitly checkout the gh-pages branch
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.' # Upload all files in the repository
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4