Skip to content

Commit 0b3f908

Browse files
committed
ci: add action to build commits
1 parent dd3c663 commit 0b3f908

2 files changed

Lines changed: 44 additions & 1 deletion

File tree

.github/workflows/build-commit.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build Commit
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: GIT Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: 'recursive'
18+
19+
- name: Fetch Submodules Recursively
20+
run: git submodule update --init --recursive
21+
22+
- name: .NET 10 Setup
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: '10.0.x'
26+
27+
- name: .NET Restore
28+
run: dotnet restore FortnitePorting
29+
30+
- name: .NET Publish
31+
run: |
32+
dotnet publish FortnitePorting -c Release --self-contained -r win-x64 -o "./Release" `
33+
-p:PublishSingleFile=true `
34+
-p:DebugType=None `
35+
-p:DebugSymbols=false `
36+
-p:IncludeNativeLibrariesForSelfExtract=true
37+
38+
- name: Upload Build Artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: FortnitePorting-${{ github.sha }}
42+
path: ./Release/FortnitePorting.exe
43+
retention-days: 30
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Release
1+
name: Build Release
22

33
on:
44
push:

0 commit comments

Comments
 (0)