mirror of
https://github.com/tonytins/cstdotnet.git
synced 2026-02-10 20:24: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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue