From 7ae1bf91e298d3111a8dc7c8aca8fb3c533297be Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Mon, 20 Mar 2023 09:56:12 +0100 Subject: [PATCH] merge publish.yml into release.yml (#78) * merge publish.yml into release.yml * merge publish.yml into release.yml --- .github/workflows/pushToNuget.yml | 17 ----------------- .github/workflows/release.yml | 6 ++++++ 2 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/pushToNuget.yml diff --git a/.github/workflows/pushToNuget.yml b/.github/workflows/pushToNuget.yml deleted file mode 100644 index 426cdc0..0000000 --- a/.github/workflows/pushToNuget.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Push new release to Nuget' - -on: - workflow_dispatch: - release: - types: [created] - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 6.x - - run: dotnet pack --configuration Release SeatsioDotNet/SeatsioDotNet.csproj -o SeatsioDotNet - - run: dotnet nuget push SeatsioDotNet/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92c3909..91d29e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,3 +32,9 @@ jobs: env: VERSION_TO_BUMP: ${{ inputs.versionToBump }} GH_TOKEN: ${{ github.token }} + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.x + - run: dotnet pack --configuration Release SeatsioDotNet/SeatsioDotNet.csproj -o SeatsioDotNet + - run: dotnet nuget push SeatsioDotNet/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} + \ No newline at end of file