-
Notifications
You must be signed in to change notification settings - Fork 25
53 lines (46 loc) · 1.34 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
merge_group:
types: [checks_requested]
jobs:
build:
runs-on: windows-latest
name: Build
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup rustup
run: rustup target add i686-pc-windows-msvc
- name: Build
run: scripts/build_installer.bat
- id: upload-unsigned
uses: actions/upload-artifact@v4
with:
name: unsigned
path: dist\windows-chewing-tsf.exe
code-signing:
runs-on: ubuntu-latest
name: Code Signing
needs: [build]
steps:
- uses: actions/download-artifact@v4
- name: Sign Artifact
uses: signpath/[email protected]
with:
api-token: "${{ secrets.SIGNPATH_API_TOKEN }}"
organization-id: "e8feb3e7-02b0-4e78-aa0a-f3431f374964"
project-slug: "windows-chewing-tsf"
signing-policy-slug: "test-signing"
github-artifact-id: "${{ steps.upload-unsigned.outputs.artifact-id }}"
wait-for-completion: true
output-artifact-directory: dist\windows-chewing-tsf.exe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: signed
path: dist\windows-chewing-tsf.exe