Skip to content

Commit

Permalink
Updated publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
kwtc committed Jul 9, 2024
1 parent 588735a commit dcf035e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:

permissions:
packages: write

env:
SOLUTION: ./Kwtc.Tjek.Client.sln

steps:

Expand All @@ -34,13 +31,16 @@ jobs:
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV

- name: Build
run: dotnet build $SOLUTION -c Release /p:Version=${VERSION}
run: dotnet build -c Release /p:Version=${VERSION}

- name: Test
run: dotnet test $SOLUTION -c Release /p:Version=${VERSION} --no-build
run: dotnet test -c Release /p:Version=${VERSION} --no-build

- name: Pack
run: dotnet pack $SOLUTION -c Release /p:Version=${VERSION} --no-build --output .
run: dotnet pack -c Release /p:Version=${VERSION} --no-build --output .

- name: Push package to Nuget.org
run: dotnet nuget push **\*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

- name: Push package to Github
run: dotnet nuget push **\*.nupkg --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/kwtc/index.json

0 comments on commit dcf035e

Please sign in to comment.