Skip to content

Commit 29828d5

Browse files
committed
fix release workflow
1 parent 383580f commit 29828d5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: .github/workflows/release.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111

1212
env:
1313
COREHOST_TRACE: false
1414
DOTNET_CLI_TELEMETRY_OPTOUT: 1 # Disable sending usage data to Microsoft
1515
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 # prevent the caching of the packages on the build machine
1616
DOTNET_NOLOGO: true # removes logo and telemetry message from first run of dotnet cli
1717
NUGET_XMLDOC_MODE: skip # prevent the download of the XML documentation for the packages
18+
DOTNET_SDK_VERSION: 5.0.x
19+
20+
defaults:
21+
run:
22+
shell: pwsh
1823

1924
steps:
2025
- uses: actions/checkout@v4
@@ -36,22 +41,22 @@ jobs:
3641

3742
- name: Setup dotnet tool
3843
env:
39-
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ matrix.dotnet }}/x64
44+
DOTNET_ROOT: ${{ runner.tool_cache }}/dncs/${{ env.DOTNET_SDK_VERSION }}/x64
4045
run: |
41-
dotnet tool install --global InheritDocTool
46+
dotnet tool install --global InheritDocTool --version 2.5.2
4247
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
4348
4449
- name: Restore Nuget packages
4550
run: dotnet restore -v:n
4651

4752
- name: Prepare Release Assets
4853
id: get-version
54+
shell: bash
4955
run: |
5056
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
5157
.github/release-notes.sh CHANGELOG.md > release-notes.txt
5258
5359
- name: Creates Nuget package
54-
shell: pwsh
5560
run: dotnet pack --configuration Release --output ./SignNow.Net/bin/Publish SignNow.Net
5661

5762
- name: Create Release

0 commit comments

Comments
 (0)