diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index d5df7bc..0b43c64 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -27,7 +27,7 @@ permissions: jobs: all: if: github.run_id != 1 - uses: dailydevops/pipelines/.github/workflows/build-dotnet-single.yml@1.0.8 + uses: dailydevops/pipelines/.github/workflows/build-dotnet-single.yml@1.1.10 with: dotnetVersion: ${{ vars.NE_DOTNET_TARGETFRAMEWORKS }} dotnetQuality: ${{ vars.NE_DOTNET_QUALITY }} diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml new file mode 100644 index 0000000..135fbd6 --- /dev/null +++ b/.github/workflows/publish-nuget.yml @@ -0,0 +1,23 @@ +name: NuGet Package + +on: + workflow_run: + workflows: [CI] + types: [completed] + branches: [main] + +permissions: + actions: read + contents: write + +jobs: + nuget: + name: Publish + if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor != 'dependabot[bot]' }} + uses: dailydevops/pipelines/.github/workflows/publish-nuget.yml@1.1.10 + with: + workflowName: ${{ github.event.workflow_run.name }} + artifactPattern: release-packages-* + environment: NuGet + runId: ${{ github.event.workflow_run.id }} + secrets: inherit