Skip to content

release new version #100

release new version

release new version #100

Workflow file for this run

name: publish to nuget
on:
create: # when tags are created
push:
branches:
- master # Default release branch, may also be named 'master' or 'develop'
jobs:
windows_latest:
name: build, pack & publish
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ClickableTransparentOverlay
- name: Build Project
run: dotnet build -c Release --no-restore ClickableTransparentOverlay
- name: Packages Project
run: dotnet pack ClickableTransparentOverlay/ClickableTransparentOverlay.csproj -c Release --no-restore --no-build
- name: Publish to nuget.org
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push ClickableTransparentOverlay\bin\Release\* -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}
- name: Build Demo for Github
run: |
dotnet build -c Release Examples/MultiThreadedOverlay
tar -a -v -c -f demo.zip Examples\MultiThreadedOverlay\bin\Release
- name: Upload Demo on Github
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: demo.zip