Skip to content

Commit 6851d4c

Browse files
committed
ci: added draft of build-executables.yml
1 parent 42dc194 commit 6851d4c

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build Executables
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-and-release:
13+
runs-on: windows-latest
14+
strategy:
15+
matrix:
16+
dotnet-version: [ '6.x', '8.x' ]
17+
steps:
18+
# Step 1: Checkout the repository
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
# Step 2: Set dotnet
23+
- name: Setup dotnet ${{ matrix.dotnet-version }}
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: ${{ matrix.dotnet-version }}
27+
cache: true
28+
29+
# Step 3: Install dependencies
30+
- name: Install dependencies
31+
run: dotnet restore
32+
33+
# Step 4: Build Executables
34+
- name: Build
35+
run: dotnet build
36+
37+
# Step 5: Build Executables with PyInstaller (Linux)
38+
- name: Build Executable with PyInstaller (Linux)
39+
if: ${{ github.event_name != 'release' }}
40+
run: |
41+
ls -l .
42+
shell: powershell
43+
44+
45+
# Step 10: Scan with VirusTotal
46+
-
47+
name: VirusTotal Scan
48+
uses: crazy-max/ghaction-virustotal@v4
49+
with:
50+
update_release_body: true
51+
vt_api_key: ${{ secrets.VT_API_KEY }}
52+
github_token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
53+
request_rate: 4
54+
files: |
55+
${{ github.event_name == 'release' && '.exe$' || '*.exe' }}

0 commit comments

Comments
 (0)