Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frankhaugen authored Nov 27, 2021
1 parent ef0c0fd commit f25f494
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,31 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Find Latest Tag
id: find
uses: oprypin/find-latest-tag@v1.0.4
with:
repository: ${{ github.repository }}
releases-only: true

- name: Pack NuGet
- name: Restore
working-directory: src
run: dotnet restore -v m

- name: Build
working-directory: src
run: dotnet build --configuration Release -p:Version=${{ steps.find.outputs.tag }} --no-restore

- name: Pack
working-directory: src
run: dotnet pack --configuration Release -v m --output nupkgs -p:PackageVersion=${{ steps.find.outputs.tag }}
run: dotnet pack --configuration Release --no-restore --no-build p:Version=${{ steps.find.outputs.tag }} -v m --output nupkgs

- uses: AButler/upload-release-assets@v2.0
with:
files: "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Push NuGets
- name: Publish
working-directory: src
run: dotnet nuget push "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit f25f494

Please sign in to comment.