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
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