Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-11 committed Jan 17, 2021
1 parent 0959572 commit 5cc5e4c
Show file tree
Hide file tree
Showing 29 changed files with 1,552 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish NuGet

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest
name: Upload NuGet Package
steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v1
with:
source-url: https://nuget.pkg.github.com/mlhpdx/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: Build solution and generate NuGet package
run: |
cd S3UploadStream
dotnet pack -c Release -o out /p:Version=$VERSION
env:
VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Push generated package to GitHub registry
run: dotnet nuget push ./S3UploadStream/out/*.nupkg --skip-duplicate --no-symbols true
Loading

0 comments on commit 5cc5e4c

Please sign in to comment.