From a6ad6f6be5a96c60c055f68cb923f700743e9308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Tegn=C3=A9r?= Date: Thu, 7 May 2020 21:46:52 +0200 Subject: [PATCH] Release now shares workflow. --- .github/workflows/release.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7abc50f..d1ceb58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,25 +3,7 @@ on: release: types: [published] jobs: - release-gh: - runs-on: ubuntu-latest - name: Deploy - steps: - - uses: actions/checkout@v2 - - name: Set up dotnet. - uses: actions/setup-dotnet@v1 - env: - NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - with: - dotnet-version: '3.1.100' - source-url: https://nuget.pkg.github.com/Personnummer/index.json - - name: Build - run: dotnet build --configuration Release Personnummer - - name: Package - run: dotnet pack --configuration Release Personnummer - - name: publish GH - run: dotnet nuget push Personnummer/bin/Release/*.nupkg - release-nuget: + release: runs-on: ubuntu-latest name: Deploy steps: @@ -35,4 +17,6 @@ jobs: - name: Package run: dotnet pack --configuration Release Personnummer - name: publish Nuget - run: dotnet nuget push Personnummer/bin/Release/*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push Personnummer/bin/Release/*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json + - name: publish GH + run: dotnet nuget push Personnummer/bin/Release/*.nupkg -k ${{secrets.GITHUB_TOKEN}} -s https://nuget.pkg.github.com/Personnummer/index.json \ No newline at end of file