Repository navigation
86 lines (75 loc) · 1.93 KB
/
Copy pathgithub-site.yml
File metadata and controls
86 lines (75 loc) · 1.93 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Site
on:
push:
branches:
- main
paths:
- "github-site/**"
- "README.md"
- ".github/i18n/**"
- "web/src/app.css"
- "src/config.ts"
- "opencode-mem.example.jsonc"
- "web/public/favicon.*"
- ".github/workflows/github-site.yml"
pull_request:
paths:
- "github-site/**"
- "README.md"
- ".github/i18n/**"
- "web/src/app.css"
- "src/config.ts"
- "opencode-mem.example.jsonc"
- "web/public/favicon.*"
- ".github/workflows/github-site.yml"
schedule:
- cron: "17 3 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: github-site-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- name: Install site dependencies
working-directory: github-site
run: bun install --frozen-lockfile
- name: Build site
working-directory: github-site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bun run build
- name: Typecheck site
working-directory: github-site
run: bun run check
- name: Check build output
working-directory: github-site
run: node scripts/check-dist.mjs
- uses: actions/upload-pages-artifact@v5
with:
path: github-site/dist
deploy:
name: deploy
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'tickernelz/opencode-mem'
needs: build
runs-on: ubuntu-26.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: pages
cancel-in-progress: false
steps:
- id: deployment
uses: actions/deploy-pages@v5