Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add signpath-compliant building #47

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/build-signed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 'Build'
on:
release:
workflow_dispatch:

jobs:
build-signed:
permissions:
contents: write
runs-on: windows-2022
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Deploy Rust to CI
uses: dtolnay/rust-toolchain@stable
- name: Deploy frontend dependencies
run: pnpm install
- name: Build Verifier
run: |
pushd verifier
go build -o "dist/verifier-x86_64-pc-windows-msvc.exe"
popd
- name: Compile software
run: pnpm tauri build --ci
- name: Upload the unsigned Windows packages
id: upload-unsigned
uses: actions/upload-artifact@v4
with:
name: windows-packages-unsigned
path: src-tauri/target/release/*.exe
- name: Submit Signing Request
uses: signpath/[email protected]
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '903dc541-2740-462e-b9dd-659adaf2188e'
Madis0 marked this conversation as resolved.
Show resolved Hide resolved
project-slug: 'installer'
signing-policy-slug: 'test-signing'
github-artifact-id: '${{steps.upload-unsigned.outputs.artifact-id}}'
wait-for-completion: true
output-artifact-directory: 'signed-artifacts'
- name: Upload the signed Windows packages
uses: actions/upload-artifact@v4
with:
name: windows-packages-signed
path: signed-artifacts/*.exe
Loading