Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Heiler committed Nov 10, 2021
1 parent 1d70ab2 commit 79e1781
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: version
- name: Get version from tag
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: pack
- name: Create package
run: dotnet pack --configuration Release --output dist /p:PackageVersion=${{ steps.version.outputs.VERSION }} /p:NoDefaultExcludes=true
- name: push
- name: Push to GitHub Packages
run: dotnet nuget push ./dist/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/mattheiler/index.json --api-key ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 79e1781

Please sign in to comment.