Publish Packages #26
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: | |
workflow_dispatch: | |
env: | |
DEPLOY_TO_NUGET: true | |
BUILD_CONFIGURATION: Release | |
DOTNET_VERSION: '7.0.x' | |
jobs: | |
run-tests: | |
uses: ./.github/workflows/tests.yml | |
name: Run All Tests | |
with: | |
build-configuration: Release | |
dotnet-version: '7.0.x' | |
deploy: | |
runs-on: ubuntu-latest | |
name: Build and publish nuget packages | |
needs: run-tests | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # avoid shallow clone so nbgv can do its work. | |
- name: Set up Environment | |
uses: ./.github/actions/setup | |
- name: Building Solution | |
uses: ./.github/actions/build | |
- name: Building & Deploy Nuget Package | |
uses: ./.github/actions/pack | |
with: | |
deploy: ${{ env.DEPLOY_TO_NUGET }} | |
tag-commit: ${{ env.DEPLOY_TO_NUGET }} | |
nuget-key: ${{ secrets.NUGET_API_KEY }} |