mirror of
https://github.com/tonytins/cstdotnet.git
synced 2026-02-10 12:14:47 -05:00
Remove solution and build workflow, update publish workflow
- Deleted CSTNet.sln because it was a pain to manage two - Also deleted the test workflow due to costs. - Updated publish workflow to use .NET 10.0.x and improved formatting.
This commit is contained in:
parent
ee4af04826
commit
87ea439dfe
3 changed files with 22 additions and 108 deletions
48
.github/workflows/build.yml
vendored
48
.github/workflows/build.yml
vendored
|
|
@ -1,48 +0,0 @@
|
||||||
name: .NET
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main, dev, "releases/**"]
|
|
||||||
pull_request:
|
|
||||||
branches: [main, dev, "releases/**"]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
timeout-minutes: 15
|
|
||||||
continue-on-error: true
|
|
||||||
runs-on: ${{ matrix.platforms }}
|
|
||||||
env:
|
|
||||||
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
dotnet: ["8.0.x"]
|
|
||||||
platforms: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup .NET
|
|
||||||
uses: actions/setup-dotnet@v3
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ matrix.dotnet }}
|
|
||||||
- name: Install dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Build
|
|
||||||
run: dotnet build --configuration Release --no-restore
|
|
||||||
test:
|
|
||||||
needs: build
|
|
||||||
timeout-minutes: 15
|
|
||||||
continue-on-error: true
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
env:
|
|
||||||
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
dotnet: ["8.0.x"]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup .NET
|
|
||||||
uses: actions/setup-dotnet@v3
|
|
||||||
with:
|
|
||||||
dotnet-version: ${{ matrix.dotnet }}
|
|
||||||
- name: Install dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Test
|
|
||||||
run: dotnet test --no-restore
|
|
||||||
44
.github/workflows/publish.yml
vendored
44
.github/workflows/publish.yml
vendored
|
|
@ -1,26 +1,26 @@
|
||||||
name: Publish Release Package
|
name: Publish Release Package
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "releases/**"
|
- "releases/**"
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Package Release
|
name: Package Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Setup dotnet
|
|
||||||
uses: actions/setup-dotnet@v3
|
|
||||||
with:
|
|
||||||
dotnet-version: "8.0.x"
|
|
||||||
- name: Install dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
- name: Package
|
|
||||||
run: dotnet pack --no-restore -o .
|
|
||||||
- name: Publish to Nuget
|
|
||||||
env:
|
env:
|
||||||
NUGET_KEY: ${{ secrets.DEPLOY_KEY }}
|
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
|
||||||
NUGET_API: https://api.nuget.org/v3/index.json
|
steps:
|
||||||
run: dotnet nuget push CSTNet.*.nupkg --api-key $NUGET_KEY --source $NUGET_API
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup dotnet
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: "10.0.x"
|
||||||
|
- name: Install dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
- name: Package
|
||||||
|
run: dotnet pack --no-restore -o .
|
||||||
|
- name: Publish to Nuget
|
||||||
|
env:
|
||||||
|
NUGET_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
NUGET_API: https://api.nuget.org/v3/index.json
|
||||||
|
run: dotnet nuget push CSTNet.*.nupkg --api-key $NUGET_KEY --source $NUGET_API
|
||||||
|
|
|
||||||
38
CSTNet.sln
38
CSTNet.sln
|
|
@ -1,38 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 17
|
|
||||||
VisualStudioVersion = 17.4.33205.214
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CCFCE2DB-C18F-4D88-B025-19ED62BD2A1D}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
.editorconfig = .editorconfig
|
|
||||||
README.md = README.md
|
|
||||||
doc\changelog.md = doc\changelog.md
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSTNet", "CSTNet\CSTNet.csproj", "{C5372E74-D1DF-4D15-B597-D1F517ECD0D8}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CSTNet.Tests", "CSTNet.Tests\CSTNet.Tests.csproj", "{01A1A8E9-D83E-4877-8AEB-2FD0A298F049}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{C5372E74-D1DF-4D15-B597-D1F517ECD0D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{C5372E74-D1DF-4D15-B597-D1F517ECD0D8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{C5372E74-D1DF-4D15-B597-D1F517ECD0D8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{C5372E74-D1DF-4D15-B597-D1F517ECD0D8}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{01A1A8E9-D83E-4877-8AEB-2FD0A298F049}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{01A1A8E9-D83E-4877-8AEB-2FD0A298F049}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{01A1A8E9-D83E-4877-8AEB-2FD0A298F049}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{01A1A8E9-D83E-4877-8AEB-2FD0A298F049}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {A18CFD76-A6E7-452F-A79F-8BA7D7ACF17D}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue