Skip to content

Commit

Permalink
Release now shares workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannestegner committed May 7, 2020
1 parent a422e24 commit a6ad6f6
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
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

0 comments on commit a6ad6f6

Please sign in to comment.