-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
47 lines (39 loc) · 1009 Bytes
/
github-pages-www.yml
File metadata and controls
47 lines (39 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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: zola@0.19.1
- 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