-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6306789
commit ee09573
Showing
1 changed file
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|