diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 0ba0d26..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2b93093..9e75831 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,26 +1,26 @@ name: Publish Release Package on: - push: - branches: - - "releases/**" + push: + branches: + - "releases/**" jobs: - publish: - name: Package Release - 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 + publish: + name: Package Release + runs-on: ubuntu-latest 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 + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages + steps: + - 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 diff --git a/CSTNet.sln b/CSTNet.sln deleted file mode 100644 index 7c221ed..0000000 --- a/CSTNet.sln +++ /dev/null @@ -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