Moved version to library project to allow for triggers with versionbumps #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |