Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/github-pages-www.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and deploy htmx.org to GitHub Pages

on:
push:
branches:
- master
workflow_dispatch:

concurrency:
cancel-in-progress: true
group: github-pages

jobs:
deploy:
name: Build and deploy to GitHub Pages
runs-on: ubuntu-latest
environment:
name: github-pages
url: '${{ steps.deployment.outputs.page_url }}'
permissions:
contents: read
id-token: write
pages: write
steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Install Zola
uses: taiki-e/install-action@v2
with:
tool: [email protected]

- name: Build content
working-directory: ./www
run: zola build

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: www/public

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4