Skip to content
This repository was archived by the owner on Jun 18, 2026. It is now read-only.

Commit de2abd0

Browse files
ci: add GitHub Pages website deployment
- Add website.yml workflow to build and deploy docs with dodeca - Add CNAME for styx.bearcove.eu custom domain - Triggers on changes to docs/, .config/dodeca.yaml, or workflow
1 parent 686464d commit de2abd0

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/website.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Website
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'docs/**'
8+
- '.config/dodeca.yaml'
9+
- '.github/workflows/website.yml'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
runs-on: depot-ubuntu-24.04-16
24+
steps:
25+
- uses: actions/checkout@v5
26+
27+
- name: Install dodeca
28+
run: |
29+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bearcove/dodeca/releases/latest/download/dodeca-installer.sh | sh
30+
31+
- name: Build website
32+
run: ~/.cargo/bin/ddc build
33+
34+
- name: Copy CNAME to output
35+
run: cp CNAME docs/public/
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v4
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: docs/public
44+
45+
deploy:
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
runs-on: depot-ubuntu-24.04
50+
needs: build
51+
steps:
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
styx.bearcove.eu

0 commit comments

Comments
 (0)