Skip to content

Commit e4eaa1c

Browse files
committed
add macos and windows signatures
1 parent 1352104 commit e4eaa1c

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

.github/workflows/server.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,51 @@ jobs:
114114
OS: ${{ matrix.target }}
115115
ARCH: ${{ matrix.arch }}
116116

117+
- name: Sign Macos binary
118+
uses: massalabs/massa/.github/actions/sign-macos@ccc3f02e34544f722634a6fb7732cc4bb515e90b
119+
if: ${{ runner.os == 'macOS' }}
120+
with:
121+
paths: "server/build/deweb-server"
122+
certificate-p12-base64: ${{ secrets.APPLE_CERTIFICATE_P12_BASE64 }}
123+
certificate-password: ${{ secrets.APPLE_CERTIFICATE_P12_PASSWORD }}
124+
signing-identity: ${{ vars.APPLE_DEVELOPER_ID_APPLICATION }}
125+
117126
- name: Rename Server artifact
118127
run: mv build/deweb-server${{ matrix.ext }} build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}
119128

120129
- name: Upload Server artifact
121130
uses: actions/upload-artifact@v4
122131
with:
123132
name: deweb-server_${{ matrix.target }}_${{ matrix.arch }}
124-
path: server/build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}
133+
path: server/build/deweb-server_${{ matrix.target }}_${{ matrix.arch }}${{ matrix.ext }}
134+
135+
sign-windows-binary:
136+
name: Sign Windows binary
137+
needs: build
138+
runs-on: windows-latest
139+
permissions:
140+
contents: write
141+
id-token: write
142+
steps:
143+
- name: Download Windows artifacts
144+
uses: actions/download-artifact@v4
145+
with:
146+
name: deweb-server_windows_amd64
147+
path: ./windows-binaries
148+
149+
- name: Sign Windows binary
150+
uses: massalabs/station/.github/actions/sign-file-digicert@413d4c0bbd042d5e797fbb66bcd2c96be5c3e71a
151+
with:
152+
files: ./windows-binaries/deweb-server_windows_amd64.exe
153+
SM_API_KEY: ${{ secrets.SM_API_KEY }}
154+
SM_CLIENT_CERT_FILE_B64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
155+
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
156+
SM_CERT_FINGERPRINT: ${{ secrets.SM_CERT_FINGERPRINT }}
157+
SM_HOST: ${{ secrets.SM_HOST }}
158+
159+
- name: Upload signed Windows binary (overwrite original)
160+
uses: actions/upload-artifact@v4
161+
with:
162+
name: deweb-server_windows_amd64
163+
path: ./windows-binaries/deweb-server_windows_amd64.exe
164+
overwrite: true

0 commit comments

Comments
 (0)