Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/create-release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Create Release Tag

on:
workflow_dispatch:

permissions:
contents: write

jobs:
create-tag:
runs-on: ubuntu-latest

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

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v4

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v4

- name: Create and Push Tag
run: |
git tag ${{ steps.gitversion.outputs.majorMinorPatch }}
git push origin ${{ steps.gitversion.outputs.majorMinorPatch }}
35 changes: 35 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish NuGet Package

on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest

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

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release

- name: Pack
run: dotnet pack --no-build --configuration Release --output ./Release

- name: Publish to NuGet
run: dotnet nuget push ./Release/*.nupkg -s nuget.org -k ${NUGET_API_KEY}
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}