Skip to content

Commit

Permalink
Reorganize, add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Jan 28, 2024
1 parent 89a16d0 commit e7c1cd9
Show file tree
Hide file tree
Showing 21 changed files with 2,585 additions and 39 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: .NET Build and Release

on:
push:
branches:
- main
- master
- dev
pull_request:
branches:
- main
- master
- dev

jobs:
build:
runs-on: ubuntu-latest

container:
image: mcr.microsoft.com/dotnet/nightly/sdk:7.0

steps:
- uses: actions/checkout@v2

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet publish --configuration Debug

- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: net7.0-artifacts
path: |
bin/Debug/net7.0/publish/NoBlock.deps.json
bin/Debug/net7.0/publish/NoBlock.dll
bin/Debug/net7.0/publish/NoBlock.pdb
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: net7.0-artifacts
path: bin/Debug/net7.0

- name: Create Tag
id: tag_version
run: |
DATE=$(date +'%y.%m.%d-%H%M%S')
echo "RELEASE_TAG=$DATE" >> $GITHUB_ENV
- name: Determine if Pre-release
id: prerelease
run: |
if [ "${{ github.ref }}" != "refs/heads/main" ]; then
echo "IS_PRERELEASE=true" >> $GITHUB_ENV
else
echo "IS_PRERELEASE=false" >> $GITHUB_ENV
fi
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_TAG }}
files: bin/Debug/net7.0/*
prerelease: ${{ env.IS_PRERELEASE }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
39 changes: 0 additions & 39 deletions csgo/addons/counterstrikesharp/plugins/NoBlock/NoBlock.deps.json

This file was deleted.

Binary file not shown.
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
22 changes: 22 additions & 0 deletions src/obj/Debug/net7.0/NoBlock.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("NoBlock")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+63f1ce1b7d1d6c198bbbaaebfa03ee4161b814f9")]
[assembly: System.Reflection.AssemblyProductAttribute("NoBlock")]
[assembly: System.Reflection.AssemblyTitleAttribute("NoBlock")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

1 change: 1 addition & 0 deletions src/obj/Debug/net7.0/NoBlock.AssemblyInfoInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5d5efe858d83940b20e6fdbe201479f4ddbbf6d5b7913cbc52625d1abb5d7f81
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
is_global = true
build_property.TargetFramework = net7.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = NoBlock
build_property.ProjectDir = /home/deck/Documents/Coding/eGO/CS2/NoBlock/Source Code/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
8 changes: 8 additions & 0 deletions src/obj/Debug/net7.0/NoBlock.GlobalUsings.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file added src/obj/Debug/net7.0/NoBlock.assets.cache
Binary file not shown.
Binary file not shown.
77 changes: 77 additions & 0 deletions src/obj/NoBlock.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"format": 1,
"restore": {
"/home/deck/Documents/Coding/eGO/CS2/NoBlock/Source Code/NoBlock.csproj": {}
},
"projects": {
"/home/deck/Documents/Coding/eGO/CS2/NoBlock/Source Code/NoBlock.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/deck/Documents/Coding/eGO/CS2/NoBlock/Source Code/NoBlock.csproj",
"projectName": "NoBlock",
"projectPath": "/home/deck/Documents/Coding/eGO/CS2/NoBlock/Source Code/NoBlock.csproj",
"packagesPath": "/home/deck/.nuget/packages/",
"outputPath": "/home/deck/Documents/Coding/eGO/CS2/NoBlock/Source Code/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/deck/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net7.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net7.0": {
"targetAlias": "net7.0",
"dependencies": {
"CounterStrikeSharp.API": {
"target": "Package",
"version": "[1.0.141, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[7.0.15, 7.0.15]"
},
{
"name": "Microsoft.NETCore.App.Ref",
"version": "[7.0.15, 7.0.15]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/home/deck/.dotnet/sdk/8.0.101/RuntimeIdentifierGraph.json"
}
}
}
}
}
21 changes: 21 additions & 0 deletions src/obj/NoBlock.csproj.nuget.g.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/deck/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/deck/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/deck/.nuget/packages/" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/7.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/7.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_DotNet_ApiCompat_Task Condition=" '$(PkgMicrosoft_DotNet_ApiCompat_Task)' == '' ">/home/deck/.nuget/packages/microsoft.dotnet.apicompat.task/7.0.404</PkgMicrosoft_DotNet_ApiCompat_Task>
</PropertyGroup>
</Project>
8 changes: 8 additions & 0 deletions src/obj/NoBlock.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)system.text.json/7.0.0/buildTransitive/net6.0/System.Text.Json.targets" Condition="Exists('$(NuGetPackageRoot)system.text.json/7.0.0/buildTransitive/net6.0/System.Text.Json.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/7.0.0/buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions/7.0.0/buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/7.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/7.0.0/buildTransitive/net6.0/Microsoft.Extensions.Configuration.UserSecrets.targets')" />
</ImportGroup>
</Project>
Loading

0 comments on commit e7c1cd9

Please sign in to comment.