-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.9 KB
/
cd.yml
File metadata and controls
53 lines (51 loc) · 1.9 KB
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: Build and sign .exe
on:
workflow_dispatch
jobs:
build:
name: Build .exe
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install dependencies
run: python -m pip install --upgrade pip
- name: Install Open Pectus Engine Manager
run: pip install -e ".[development]"
- name: Build .exe
run: |
pyinstaller pyinstaller.spec
cd dist
move "Open Pectus Engine Manager.exe" ../
- name: Install DigiCert Client tools from Github Custom Actions marketplace
uses: digicert/ssm-code-signing@v1.1.1
- name: Set up certificate
run: |
echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /d/Certificate_pkcs12.p12
shell: bash
- name: Set variables
run: |
echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV"
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV"
shell: bash
- name: Signing using keypair alias
run: |
smctl sign --keypair-alias key_1229360753 --input "Open Pectus Engine Manager.exe" --config-file C:\Users\RUNNER~1\AppData\Local\Temp\smtools-windows-x64\pkcs11properties.cfg
shell: cmd
- uses: ncipollo/release-action@v1
with:
artifacts: "Open Pectus Engine Manager.exe"
tag: release
body: "Download and run `Open Pectus Engine Manager.exe`."
allowUpdates: true
makeLatest: true
omitBodyDuringUpdate: true
removeArtifacts: true
replacesArtifacts: true