File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & Release Go Edge
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " go-backend"
7
+ jobs :
8
+ release :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Setup repo
12
+ uses : actions/checkout@v3
13
+ - name : Setup Deno
14
+ uses : denoland/setup-deno@v2
15
+ with :
16
+ deno-version : v2.5.0
17
+ - name : Compile frontend with Deno
18
+ run : |
19
+ deno task build
20
+ - name : Setup Go
21
+ uses : actions/setup-go@v4
22
+ with :
23
+ go-version : " 1.25.1"
24
+ - name : Build Go binaries for multiple platforms
25
+ run : |
26
+ # Linux ARM64
27
+ GOOS=linux GOARCH=arm64 go build -o silverbullet .
28
+ zip silverbullet-server-linux-aarch64.zip silverbullet
29
+
30
+ # Linux x86_64
31
+ GOOS=linux GOARCH=amd64 go build -o silverbullet .
32
+ zip silverbullet-server-linux-x86_64.zip silverbullet
33
+
34
+ # macOS ARM64
35
+ GOOS=darwin GOARCH=arm64 go build -o silverbullet .
36
+ zip silverbullet-server-darwin-aarch64.zip silverbullet
37
+
38
+ # macOS x86_64
39
+ GOOS=darwin GOARCH=amd64 go build -o silverbullet .
40
+ zip silverbullet-server-darwin-x86_64.zip silverbullet
41
+
42
+ # Windows x86_64
43
+ GOOS=windows GOARCH=amd64 go build -o silverbullet.exe .
44
+ zip silverbullet-server-windows-x86_64.zip silverbullet.exe
45
+ - name : Update edge release
46
+ uses : softprops/action-gh-release@v1
47
+ env :
48
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ with :
50
+ draft : false
51
+ tag_name : edge-go
52
+ body : Automated build from commit ${{ github.sha }}
53
+ prerelease : true
54
+ files : |
55
+ website/CHANGELOG.md
56
+ dist/plug-compile.js
57
+ silverbullet-*.zip
You can’t perform that action at this time.
0 commit comments