Skip to content

Moved version to library project to allow for triggers with versionbumps #6

Moved version to library project to allow for triggers with versionbumps

Moved version to library project to allow for triggers with versionbumps #6

name: Publish Packages
on:
push:
branches: [ main ]
paths:
- 'DSTV.Net/DSTV.Net.csproj'
- '.github/workflows/PUBLISH_PACKAGES.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout repository
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Test
run: dotnet test
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish DTSV.Net
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: DSTV.Net/DSTV.Net.csproj
NUGET_KEY: ${{secrets.PUBLISH_TO_NUGET_ORG}}