File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ tags :
6+ - ' **'
7+
8+ env :
9+ DOTNET_VERSION : ' 6.0.x' # The .NET SDK version to use
10+ DOTNET_CLI_TELEMETRY_OPTOUT : false
11+ OUTPUT_NAME : COM3D2.DressCode
12+
13+ jobs :
14+ build :
15+
16+ runs-on : windows-2019
17+
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v3
21+
22+ - name : Setup .NET Core
23+ uses : actions/setup-dotnet@v3
24+ with :
25+ dotnet-version : ${{ env.DOTNET_VERSION }}
26+ dotnet-quality : ga
27+
28+ - name : Install dependencies
29+ run : dotnet restore
30+
31+ - name : Build
32+ run : dotnet build --configuration Release --no-restore --output build
33+
34+ - name : Create the package
35+ run : |
36+ $archiveName = "$env:OUTPUT_NAME-$env:GITHUB_REF_NAME.zip"
37+ Add-Content -Value "ARCHIVE_NAME=$archiveName" -Path $env:GITHUB_ENV
38+ $basePath = Get-Location
39+ Set-Location build
40+ New-Item -Type Directory config, plugins
41+ Move-Item localization config
42+ Move-Item COM3D2.DressCode.dll, COM3D2.I2PluginLocalization.dll plugins
43+ Compress-Archive -Path config, plugins -DestinationPath $basePath\$archiveName -CompressionLevel NoCompression
44+
45+ - name : Release
46+ uses : softprops/action-gh-release@v1
47+ with :
48+ fail_on_unmatched_files : true
49+ files : ${{ env.ARCHIVE_NAME }}
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <configuration >
3+ <packageSources >
4+ <add key =" bepinex" value =" https://nuget.bepinex.dev/v3/index.json" />
5+ </packageSources >
6+ </configuration >
You can’t perform that action at this time.
0 commit comments