Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
frankhaugen authored Oct 5, 2020
1 parent 6306789 commit ee09573
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

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

- name: Find Latest Tag
id: find
# You may pin to the exact commit or the version.
# uses: oprypin/find-latest-tag@cc85180adff5be91282940868529accfc5ab40a7
uses: oprypin/[email protected]
with:
# Repository name with owner. E.g. actions/checkout
repository: ${{ github.repository }}
# If true, consider only tags that have an associated release
releases-only: true

- name: Echo Version
run: echo ${{ steps.find.outputs.tag }}

- name: Pack NuGet
run: dotnet pack --configuration Release -v m --output nupkgs -p:PackageVersion=${{ steps.find.outputs.tag }}
- name: Upload Release Assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: AButler/[email protected]
with:
release_id: ${{ steps.find.outputs.tag }}
path: nupkgs
files: "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}.nupkg"
repo-token: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit ee09573

Please sign in to comment.