-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (77 loc) · 2.47 KB
/
release.yml
File metadata and controls
93 lines (77 loc) · 2.47 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
87
88
89
90
91
92
93
name: Build and Release Plugin Assets
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build backend WASM
working-directory: backend
run: |
set -euo pipefail
mkdir -p ../release/backend
GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o ../release/backend/github.wasm .
- name: Build frontend
working-directory: frontend
run: |
set -euo pipefail
bun install --frozen-lockfile
bun run build
- name: Build MCP
working-directory: mcp
run: |
set -euo pipefail
bun install --frozen-lockfile
bun run build
- name: Collect release files
run: |
set -euo pipefail
mkdir -p release/frontend
cp -R frontend/dist release/frontend/dist
mkdir -p release/mcp
cp -R mcp/dist release/mcp/dist
mkdir -p release/migrations
cp -R backend/migrations/. release/migrations/
cp plugin.json release/plugin.json
- name: Create archives
run: |
set -euo pipefail
tar -czf github-backend-wasm.tar.gz -C release/backend github.wasm
tar -czf github-frontend-dist.tar.gz -C release/frontend dist
tar -czf github-mcp-dist.tar.gz -C release/mcp dist
tar -czf github-migrations.tar.gz -C release migrations
tar -czf github-plugin-manifest.tar.gz -C release plugin.json
- name: Generate checksums
run: |
set -euo pipefail
sha256sum github-backend-wasm.tar.gz \
github-frontend-dist.tar.gz \
github-mcp-dist.tar.gz \
github-migrations.tar.gz \
github-plugin-manifest.tar.gz > checksums.txt
- name: Publish GitHub Release assets
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
github-backend-wasm.tar.gz
github-frontend-dist.tar.gz
github-mcp-dist.tar.gz
github-migrations.tar.gz
github-plugin-manifest.tar.gz
checksums.txt