Skip to content

Commit

Permalink
chore: remove pushing to github package
Browse files Browse the repository at this point in the history
  • Loading branch information
princ3od authored and trong-codelink committed Mar 17, 2022
1 parent 36d5b8e commit 02c0c0b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Release to NuGet
on:
push:
branches: [master]
tags:
- "*"

jobs:
build:
Expand All @@ -21,16 +22,14 @@ jobs:
run: msbuild MaterialSurface.csproj /p:Configuration=Release
working-directory: ./MaterialSurface

- name: Package Nuget
run: nuget pack MaterialSurface.csproj -Prop Configuration=Release -Version 1.1.4
working-directory: ./MaterialSurface

- name: Add Github source
run: nuget source Add -Name "github" -Source "https://nuget.pkg.github.com/princ3od/index.json" -UserName princ3od -Password ${{ secrets.GH_KEY }}
working-directory: ./MaterialSurface
- name: Get Tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: true

- name: Push to GitHub registry
run: nuget push **/*.nupkg -Source "github" -ApiKey ${{ secrets.GH_KEY }} -SkipDuplicate
- name: Package Nuget
run: nuget pack MaterialSurface.csproj -Prop Configuration=Release -Version ${{ steps.tag.outputs.tag }}
working-directory: ./MaterialSurface

- name: Push to Nuget registry
Expand Down

0 comments on commit 02c0c0b

Please sign in to comment.