diff --git a/.github/workflows/publish-nuget.yaml b/.github/workflows/publish-nuget.yaml deleted file mode 100644 index 1fea9db..0000000 --- a/.github/workflows/publish-nuget.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: publish-nuget - -on: - workflow_call: - secrets: - NUGET_API_KEY: - required: true - -jobs: - publish-nuget: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: actions/cache@v4 - with: - path: | - ~/.nuget/packages - ~/.local/share/NuGet/v3-cache - key: ${{ runner.os }}-v0-nuget-${{ hashFiles('**/*.csproj') }} - restore-keys: | - ${{ runner.os }}-v0-nuget- - - name: Build (Release) - run: dotnet build ${{ github.workspace }}/Build.csproj --configuration=Release --property CI=true - - name: Publish to NuGet - run: dotnet nuget push --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source 'https://api.nuget.org/v3/index.json' ${{ github.workspace }}/packages/RabbitMQ.AMQP.Client.*.nupkg diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index c01e545..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,15 +0,0 @@ -name: publish rabbitmq-dotnet-client - -on: - release: - types: - # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release - - published - -jobs: - call-build-test: - uses: ./.github/workflows/build-test.yaml - call-publish-nuget: - uses: ./.github/workflows/publish-nuget.yaml - needs: call-build-test - secrets: inherit