Skip to content

Create LICENSE

Create LICENSE #25

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build Patcher
run: |
cd src/EnchCoreApi.TrProtocol.Patcher
dotnet build EnchCoreApi.TrProtocol.Patcher.csproj --configuration Release --output .temp
- name: Run Patcher
run: |
cd src/EnchCoreApi.TrProtocol.Patcher\.temp
./EnchCoreApi.TrProtocol.Patcher.exe
- name: Restore dependencies
run: |
cd src
dotnet restore
- name: Build
run: |
cd src
dotnet publish --configuration Release --output ./publish
- name: Copy Files
run: |
mkdir release
copy src/publish/EnchCoreApi.TrProtocol.dll release
copy src/publish/EnchCoreApi.TrProtocol.pdb release
copy Output/OTAPI.dll release
- name: Upload Artifact
uses: actions/upload-artifact@v3.1.2
with:
path: release