ci: add action to build commits #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Commit | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: GIT Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Fetch Submodules Recursively | |
| run: git submodule update --init --recursive | |
| - name: .NET 10 Setup | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: .NET Restore | |
| run: dotnet restore FortnitePorting | |
| - name: .NET Publish | |
| run: | | |
| dotnet publish FortnitePorting -c Release --self-contained -r win-x64 -o "./Release" ` | |
| -p:PublishSingleFile=true ` | |
| -p:DebugType=None ` | |
| -p:DebugSymbols=false ` | |
| -p:IncludeNativeLibrariesForSelfExtract=true | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: FortnitePorting-${{ github.sha }} | |
| path: ./Release/FortnitePorting.exe | |
| retention-days: 30 |