Skip to content

Commit d551aa2

Browse files
committed
ci: verify assets naming
1 parent e306859 commit d551aa2

File tree

3 files changed

+77
-33
lines changed

3 files changed

+77
-33
lines changed

.github/workflows/pre-release-nodejs-bridge.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,9 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
include:
13-
- os: ubuntu-latest
13+
- os: ubuntu-22.04
1414
arch: linux-x86_64
1515
python_arch: x64
16-
- os: ubuntu-22.04-arm
17-
arch: linux-aarch64
18-
python_arch: arm64
19-
- os: macos-15-intel
20-
arch: macosx-x86_64
21-
python_arch: x64
22-
- os: macos-latest
23-
arch: macosx-arm64
24-
python_arch: arm64
25-
- os: windows-latest
26-
arch: win-amd64
27-
python_arch: x64
2816

2917
runs-on: ${{ matrix.os }}
3018

@@ -74,7 +62,7 @@ jobs:
7462
run: pnpm install --no-frozen-lockfile
7563

7664
- name: Build Node.js bridge
77-
run: npm run build:nodejs-bridge
65+
run: pnpm run build:nodejs-bridge
7866

7967
- name: Upload Node.js bridge
8068
uses: actions/upload-artifact@v4
@@ -105,12 +93,28 @@ jobs:
10593
uses: actions/download-artifact@v4
10694
with:
10795
path: bridges/nodejs/dist
96+
merge-multiple: true
10897

109-
- uses: marvinpinto/action-automatic-releases@latest
98+
- name: Verify Node.js bridge assets
99+
shell: bash
100+
run: |
101+
set -euo pipefail
102+
ls -la bridges/nodejs/dist
103+
required=(
104+
"bridges/nodejs/dist/leon-nodejs-bridge.zip"
105+
)
106+
for asset in "${required[@]}"; do
107+
[ -f "$asset" ] || { echo "Missing asset: $asset"; exit 1; }
108+
done
109+
110+
- name: Create draft release
111+
uses: softprops/action-gh-release@v2
110112
with:
111-
repo_token: ${{ secrets.GITHUB_TOKEN }}
112-
automatic_release_tag: nodejs-bridge_v${{ env.NODEJS_BRIDGE_VERSION }}
113+
tag_name: nodejs-bridge_v${{ env.NODEJS_BRIDGE_VERSION }}
114+
name: Node.js Bridge ${{ env.NODEJS_BRIDGE_VERSION }}
113115
draft: true
114116
prerelease: false
115-
title: Node.js Bridge ${{ env.NODEJS_BRIDGE_VERSION }}
116-
files: bridges/nodejs/dist/artifact/*.zip
117+
files: bridges/nodejs/dist/*.zip
118+
generate_release_notes: true
119+
env:
120+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-release-python-bridge.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ jobs:
8787
run: pnpm install --no-frozen-lockfile
8888

8989
- name: Set up Python bridge
90-
run: npm run setup:python-bridge
90+
run: pnpm run setup:python-bridge
9191

9292
- name: Build Python bridge
93-
run: npm run build:python-bridge
93+
run: pnpm run build:python-bridge
9494

9595
- name: Upload Python bridge
9696
uses: actions/upload-artifact@v4
@@ -121,12 +121,32 @@ jobs:
121121
uses: actions/download-artifact@v4
122122
with:
123123
path: bridges/python/dist
124+
merge-multiple: true
124125

125-
- uses: marvinpinto/action-automatic-releases@latest
126+
- name: Verify Python bridge assets
127+
shell: bash
128+
run: |
129+
set -euo pipefail
130+
ls -la bridges/python/dist
131+
required=(
132+
"bridges/python/dist/leon-python-bridge-linux-aarch64.zip"
133+
"bridges/python/dist/leon-python-bridge-linux-x86_64.zip"
134+
"bridges/python/dist/leon-python-bridge-macosx-arm64.zip"
135+
"bridges/python/dist/leon-python-bridge-macosx-x86_64.zip"
136+
"bridges/python/dist/leon-python-bridge-win-amd64.zip"
137+
)
138+
for asset in "${required[@]}"; do
139+
[ -f "$asset" ] || { echo "Missing asset: $asset"; exit 1; }
140+
done
141+
142+
- name: Create draft release
143+
uses: softprops/action-gh-release@v2
126144
with:
127-
repo_token: ${{ secrets.GITHUB_TOKEN }}
128-
automatic_release_tag: python-bridge_v${{ env.PYTHON_BRIDGE_VERSION }}
145+
tag_name: python-bridge_v${{ env.PYTHON_BRIDGE_VERSION }}
146+
name: Python Bridge ${{ env.PYTHON_BRIDGE_VERSION }}
129147
draft: true
130148
prerelease: false
131-
title: Python Bridge ${{ env.PYTHON_BRIDGE_VERSION }}
132-
files: bridges/python/dist/artifact/*.zip
149+
files: bridges/python/dist/*.zip
150+
generate_release_notes: true
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-release-tcp-server.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ jobs:
8787
run: pnpm install --no-frozen-lockfile
8888

8989
- name: Set up TCP server
90-
run: npm run setup:tcp-server
90+
run: pnpm run setup:tcp-server
9191

9292
- name: Build TCP server
93-
run: npm run build:tcp-server
93+
run: pnpm run build:tcp-server
9494

9595
- name: Upload TCP server
9696
uses: actions/upload-artifact@v4
@@ -121,12 +121,32 @@ jobs:
121121
uses: actions/download-artifact@v4
122122
with:
123123
path: tcp_server/dist
124+
merge-multiple: true
124125

125-
- uses: marvinpinto/action-automatic-releases@latest
126+
- name: Verify TCP server assets
127+
shell: bash
128+
run: |
129+
set -euo pipefail
130+
ls -la tcp_server/dist
131+
required=(
132+
"tcp_server/dist/leon-tcp-server-linux-aarch64.zip"
133+
"tcp_server/dist/leon-tcp-server-linux-x86_64.zip"
134+
"tcp_server/dist/leon-tcp-server-macosx-arm64.zip"
135+
"tcp_server/dist/leon-tcp-server-macosx-x86_64.zip"
136+
"tcp_server/dist/leon-tcp-server-win-amd64.zip"
137+
)
138+
for asset in "${required[@]}"; do
139+
[ -f "$asset" ] || { echo "Missing asset: $asset"; exit 1; }
140+
done
141+
142+
- name: Create draft release
143+
uses: softprops/action-gh-release@v2
126144
with:
127-
repo_token: ${{ secrets.GITHUB_TOKEN }}
128-
automatic_release_tag: tcp-server_v${{ env.TCP_SERVER_VERSION }}
145+
tag_name: tcp-server_v${{ env.TCP_SERVER_VERSION }}
146+
name: TCP Server ${{ env.TCP_SERVER_VERSION }}
129147
draft: true
130148
prerelease: false
131-
title: TCP Server ${{ env.TCP_SERVER_VERSION }}
132-
files: tcp_server/dist/artifact/*.zip
149+
files: tcp_server/dist/*.zip
150+
generate_release_notes: true
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)