Skip to content

Commit 30b293b

Browse files
committed
先安装 .NET 再装工具
1 parent f6a8fbb commit 30b293b

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/NuGet-tag-publish-MediaConverters.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ jobs:
3434
apt-get install zlib1g-dev:arm64 -y
3535
3636
- uses: actions/checkout@v4
37-
38-
- name: Install dotnet tool
39-
run: dotnet tool install -g dotnetCampus.TagToVersion
40-
41-
- name: Set tag to version
42-
run: dotnet TagToVersion -t ${{ github.ref }}
4337

4438
- name: Setup .NET
4539
uses: actions/setup-dotnet@v1
@@ -49,6 +43,12 @@ jobs:
4943
5.0.x
5044
6.0.x
5145
9.0.x
46+
47+
- name: Install dotnet tool
48+
run: dotnet tool install -g dotnetCampus.TagToVersion
49+
50+
- name: Set tag to version
51+
run: dotnet TagToVersion -t ${{ github.ref }}
5252

5353
- name: Build with dotnet
5454
run: dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
@@ -95,12 +95,6 @@ jobs:
9595
apt-get install zlib1g-dev:arm64 -y
9696
9797
- uses: actions/checkout@v4
98-
99-
- name: Install dotnet tool
100-
run: dotnet tool install -g dotnetCampus.TagToVersion
101-
102-
- name: Set tag to version
103-
run: dotnet TagToVersion -t ${{ github.ref }}
10498

10599
- name: Setup .NET
106100
uses: actions/setup-dotnet@v1
@@ -111,6 +105,12 @@ jobs:
111105
6.0.x
112106
9.0.x
113107
108+
- name: Install dotnet tool
109+
run: dotnet tool install -g dotnetCampus.TagToVersion
110+
111+
- name: Set tag to version
112+
run: dotnet TagToVersion -t ${{ github.ref }}
113+
114114
- name: Build with dotnet
115115
run: dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
116116

0 commit comments

Comments
 (0)