Skip to content

Commit

Permalink
push release to github
Browse files Browse the repository at this point in the history
  • Loading branch information
drr00t committed Feb 12, 2023
1 parent dc806e8 commit 873b71d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-pre.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9][0-9][0-9]"
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+"


name: .NET (CD - Github Packages)
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,21 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_KEY }}
- name: Packing
source-url: https://nuget.pkg.github.com/roadtoagility/index.json
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
- name: Pushing to Nuget
run: dotnet nuget push *.${VERSION}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
- name: Push to GitHub Nuget
run: dotnet nuget push *.${VERSION}.nupkg
env:
PKG_GITHUB_TOKEN: ${{ secrets.PKG_GITHUB_TOKEN }}
# with:
# dotnet-version: 6.0.x
# env:
# NUGET_AUTH_TOKEN: ${{ secrets.NUGET_KEY }}
# - name: Packing
# run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
# - name: Pushing to Nuget
# run: dotnet nuget push *.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
create-github-release:
name: Create GitHub Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit 873b71d

Please sign in to comment.