Skip to content

Commit

Permalink
Add github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
kavics committed Mar 13, 2024
1 parent 94e89f9 commit 5aff572
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
changelog:
exclude:
labels:
- releasenotes-skip
categories:
- title: Features
labels:
- releasenotes-feature
- title: Bug fixes
labels:
- bug
- releasenotes-bug
- title: Other Changes
labels:
- "*"
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish to NuGet
on:
push:
branches:
- master

jobs:

build:

runs-on: windows-latest
defaults:
run:
working-directory: src

env:
BUILD_CONFIG: 'Release'
SOLUTION: 'TaskManagement.sln'

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install dependencies
run: dotnet restore ${{env.SOLUTION}}
- name: Build
run: dotnet build ${{env.SOLUTION}} --configuration Release --no-restore
- name: Pack nugets
run: dotnet pack ${{env.SOLUTION}} -c Release --no-build --output .
- name: Push to NuGet
run: dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json




0 comments on commit 5aff572

Please sign in to comment.