diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e9292d..b946376 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,6 +71,23 @@ jobs: with: fetch-depth: 0 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: '8.0.300' + + - name: Setup GitVersion + uses: gittools/actions/gitversion/setup@v0.9.9 + with: + versionSpec: ${{ env.GitVersion_Version }} + + - name: GitVersion + id: gitversion + uses: gittools/actions/gitversion/execute@v0.9.9 + with: + useConfigFile: true + configFilePath: gitversion.yml + - name: Install tfx working-directory: extensions/azuredevops run: npm install tfx-cli@0.7.x -g --no-audit --no-fund @@ -85,7 +102,7 @@ jobs: - name: Package Extension working-directory: extensions/azuredevops - run: tfx extension create --json --no-color --output-path .\artifacts\Build.Tasks.$(GitVersion.MajorMinorPatch).vsix --override "{\"version\":\"$(GitVersion.MajorMinorPatch)\"}" + run: tfx extension create --json --no-color --output-path .\artifacts\Build.Tasks.${{ steps.gitversion.outputs.MajorMinorPatch }}.vsix --override "{\"version\":\"${{ steps.gitversion.outputs.MajorMinorPatch }}\"}" - name: Upload Artifacts uses: actions/upload-artifact@v2