1- name : Build Agentic Signal
1+ name : Build Agentic Signal
22
33permissions :
44 contents : write
@@ -20,36 +20,31 @@ jobs:
2020 strategy :
2121 matrix :
2222 platform : [windows-latest, macos-latest, ubuntu-latest]
23+
2324 runs-on : ${{ matrix.platform }}
25+
2426 steps :
2527 - uses : actions/checkout@v5
2628
27- # Extract version from package.json
2829 - name : Get Package Version
2930 id : pkg_version
3031 shell : bash
3132 run : |
3233 VERSION=$(jq -r '.version' package.json)
33- echo "VERSION=$VERSION" >> $GITHUB_ENV
3434 echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
3535
36- # Install Bun
3736 - uses : oven-sh/setup-bun@v2
3837
39- # Install root dependencies
4038 - name : Install root dependencies
4139 run : bun install
4240
43- # Install client dependencies
4441 - name : Install client dependencies
4542 run : cd client && bun install
4643
47- # Install Deno
4844 - uses : denoland/setup-deno@v2
4945 with :
5046 deno-version : v2.x
5147
52- # Custom: Build your backend for each platform
5348 - name : Build backend (Windows)
5449 if : matrix.platform == 'windows-latest'
5550 run : bun run build:windows
6257 if : matrix.platform == 'ubuntu-latest'
6358 run : |
6459 sudo apt update
65- sudo apt install libwebkit2gtk-4.1-dev \
60+ sudo apt install -y \
61+ libwebkit2gtk-4.1-dev \
6662 build-essential \
6763 curl \
6864 wget \
@@ -76,19 +72,56 @@ jobs:
7672 if : matrix.platform == 'ubuntu-latest'
7773 run : bun run build:linux
7874
79- # Official Tauri build & release upload
80- - uses : tauri-apps/tauri-action@v0
75+ - name : Upload artifacts
76+ uses : actions/upload-artifact@v4
8177 with :
82- tagName : v${{ steps.pkg_version.outputs.VERSION }}
83- releaseName : Agentic Signal v${{ steps.pkg_version.outputs.VERSION }}
84- releaseDraft : false
85- prerelease : false
86- projectPath : .
87- includeDebug : false
88- includeRelease : true
89- includeUpdaterJson : true
90- updaterJsonKeepUniversal : false
91- env :
92- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78+ name : agentic-signal-${{ matrix.platform }}
79+ path : src-tauri/target/release/bundle/**
80+
81+
82+ release :
83+ name : Create GitHub Release
84+ needs : build
85+ runs-on : ubuntu-latest
86+
87+ if : github.ref == 'refs/heads/main'
88+
89+ steps :
90+ - uses : actions/checkout@v5
91+
92+ - name : Get Package Version
93+ id : pkg_version
94+ shell : bash
95+ run : |
96+ VERSION=$(jq -r '.version' package.json)
97+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
98+
99+ - name : Download Windows artifacts
100+ uses : actions/download-artifact@v4
101+ with :
102+ name : agentic-signal-windows-latest
103+ path : dist/windows
93104
94- # Artifacts will be uploaded automatically by tauri-action to the release for all platforms.
105+ - name : Download macOS artifacts
106+ uses : actions/download-artifact@v4
107+ with :
108+ name : agentic-signal-macos-latest
109+ path : dist/macos
110+
111+ - name : Download Linux artifacts
112+ uses : actions/download-artifact@v4
113+ with :
114+ name : agentic-signal-ubuntu-latest
115+ path : dist/linux
116+
117+ - name : Create GitHub Release
118+ uses : softprops/action-gh-release@v2
119+ with :
120+ tag_name : v${{ steps.pkg_version.outputs.VERSION }}
121+ name : Agentic Signal v${{ steps.pkg_version.outputs.VERSION }}
122+ files : |
123+ dist/windows/**/*
124+ dist/macos/**/*
125+ dist/linux/**/*
126+ env :
127+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments