Skip to content

Commit

Permalink
ci: Install dotnet before running gitversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Crown0815 committed Dec 29, 2023
1 parent 4d1c32a commit 08dff12
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish_tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ jobs:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
Expand All @@ -25,11 +31,6 @@ jobs:
with:
useConfigFile: true

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json

- name: Package
run: dotnet pack --configuration Release --output nuget --nologo -p:Version=${{ steps.version.outputs.nuGetVersionV2 }}

Expand Down

0 comments on commit 08dff12

Please sign in to comment.