Skip to content

Instantly share code, notes, and snippets.

@0xLeif
Created September 24, 2025 15:49
Show Gist options
  • Select an option

  • Save 0xLeif/7c0e8522f8e56b5a9893dbe91c10c42b to your computer and use it in GitHub Desktop.

Select an option

Save 0xLeif/7c0e8522f8e56b5a9893dbe91c10c42b to your computer and use it in GitHub Desktop.
GitHub Action to deploy HTML to GitHub Pages
name: 📖 Pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v3
with:
path: docs
- id: deployment
uses: actions/deploy-pages@v4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment