From 08dff1242f0f51df4cf7599b7660486d9169371a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Kro=CC=88ner?= Date: Fri, 29 Dec 2023 23:11:04 +0100 Subject: [PATCH] ci: Install dotnet before running gitversion --- .github/workflows/publish_tool.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish_tool.yml b/.github/workflows/publish_tool.yml index f529855..5fdabe3 100644 --- a/.github/workflows/publish_tool.yml +++ b/.github/workflows/publish_tool.yml @@ -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/setup@v0.10.2 with: @@ -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 }}