-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-action.yml
More file actions
68 lines (54 loc) · 2.31 KB
/
github-action.yml
File metadata and controls
68 lines (54 loc) · 2.31 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: AIEP Mirror
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# ── Build your site ──────────────────────────────────────────────────────
# Uncomment the section matching your static site generator:
# Astro
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build # outputs to ./dist (or your outDir)
# Hugo (uncomment if using Hugo)
# - uses: peaceiris/actions-hugo@v2
# - run: hugo
# Jekyll (uncomment if using Jekyll)
# - uses: helaili/jekyll-action@v2
# ── Build AIEP Mirror surface ────────────────────────────────────────────
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install aiep-mirror
run: pip install aiep-mirror
- name: Build mirror artefacts
run: aiep-mirror build
# Reads .aiep-mirror.json automatically.
# Ensure .aiep-mirror.json is committed to your repo.
- name: Verify mirror artefacts
run: aiep-mirror verify
# ── Deploy ───────────────────────────────────────────────────────────────
# The .well-known/ directory is inside your out_dir (from .aiep-mirror.json)
# Deploy your site root (including .well-known/) to your hosting provider.
# Vercel example:
# - uses: amondnet/vercel-action@v25
# with:
# vercel-token: ${{ secrets.VERCEL_TOKEN }}
# vercel-org-id: ${{ secrets.ORG_ID }}
# vercel-project-id: ${{ secrets.PROJECT_ID }}
# working-directory: ./dist
# Netlify example:
# - uses: nwtgck/actions-netlify@v2
# with:
# publish-dir: './dist'
# production-branch: main
# env:
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}