Skip to content

Commit

Permalink
update repease pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
drr00t committed Feb 12, 2023
1 parent 692ee35 commit 5680a08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ jobs:
name: Publish Nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/roadtoagility/index.json
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
- name: Push
run: dotnet nuget push *.${VERSION}.nupkg --source https://nuget.pkg.github.com/roadtoagility/index.json --api-key ${PKG_GITHUB_TOKEN}
run: dotnet nuget push *.${VERSION}.nupkg
env:
PKG_GITHUB_TOKEN: ${{ secrets.PKG_GITHUB_TOKEN }}
create-github-release:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@ jobs:
name: Publish Nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
dotnet-version: 6.0.x
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
- name: Push
run: dotnet nuget push *.${VERSION}.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_KEY}}
run: dotnet nuget push *.${VERSION}.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_AUTH_TOKEN
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_KEY }}
create-github-release:
name: Create GitHub Release
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5680a08

Please sign in to comment.