Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/SlejmUr/TarkovServer
Browse files Browse the repository at this point in the history
  • Loading branch information
SlejmUr committed Oct 16, 2023
2 parents 3a22835 + d447795 commit 1e3f93b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: .NET Build

on:
push:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
pull_request:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'

jobs:
build:
name: .NET on ${{ matrix.runs-on }} (${{ matrix.configuration }})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [windows-latest]
configuration: [Release,Debug]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore

- name: Publish
run: dotnet publish -c ${{ matrix.configuration }} --property:PublishDir=../artifacts

- name: Tar files (Applications)
run: tar -cvf Applications.tar Applications\artifacts

- name: Tar files (Plugins)
run: tar -cvf Plugins.tar Plugins\artifacts


- name: Tar files (Core/Lib)
run: tar -cvf CoreLib.tar artifacts


- name: Upload artifact (Applications)
uses: actions/upload-artifact@v3
with:
name: TarkovServerApplications-${{ matrix.configuration }}
path: Applications.tar
if-no-files-found: error

- name: Upload artifact (Plugins)
uses: actions/upload-artifact@v3
with:
name: TarkovServerPlugins-${{ matrix.configuration }}
path: Plugins.tar
if-no-files-found: error

- name: Upload artifact (Core/Lib)
uses: actions/upload-artifact@v3
with:
name: TarkovServerLib-${{ matrix.configuration }}
path: CoreLib.tar
if-no-files-found: error
4 changes: 2 additions & 2 deletions Plugins/ExtCommands/ExtCommands.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
Expand All @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="JWT" Version="10.0.2" />
<PackageReference Include="JWT" Version="10.1.1" />
<PackageReference Include="System.Composition.AttributedModel" Version="6.0.0" />
</ItemGroup>

Expand Down

0 comments on commit 1e3f93b

Please sign in to comment.