Skip to content

Commit 2a65cb1

Browse files
committed
ci: add build workflow
1 parent 355f496 commit 2a65cb1

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build EXE
2+
3+
on:
4+
push:
5+
branches: [ master ] # Adjust this as necessary
6+
pull_request:
7+
branches: [ master ] # Adjust this as necessary
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install Windows 10 SDK
16+
uses: GuillaumeFalourd/setup-windows10-sdk-action@v1
17+
with:
18+
sdk-version: 17763
19+
20+
- name: Set up MSBuild path
21+
uses: microsoft/[email protected]
22+
23+
- name: Build eTokenSign3 Solution
24+
run: msbuild eTokenSign3.sln /p:Configuration=Release /p:Platform="x86"
25+
26+
- name: Determine Next Version and Tag
27+
id: versioning
28+
uses: mathieudutour/[email protected]
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
create_annotated_tag: true
32+
tag_prefix: v
33+
34+
- name: 🚀 Release
35+
uses: softprops/action-gh-release@v1
36+
with:
37+
tag_name: ${{ steps.versioning.outputs.new_tag }}
38+
body: ${{ steps.versioning.outputs.changelog }}
39+
files: |
40+
**/*.exe
41+
**/*.dll

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
"# eTokenSign2"
1+
The same eTokenSign2 found on https://www.panagenda.com/2018/09/ev-code-signing-with-ci-cd/
2+
3+
All credit goes to draketb for his post on https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing/47894907
4+
5+
### Usage
6+
7+
`etokensign.exe <certificate name> <token PIN> <timestamp URL> <path to file to sign>`

0 commit comments

Comments
 (0)