Skip to content

Commit 881e280

Browse files
committed
Revert "先安装 .NET 再装工具"
This reverts commit 30b293b.
1 parent 797622e commit 881e280

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,6 +34,12 @@ 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 }}
3743

3844
- name: Setup .NET
3945
uses: actions/setup-dotnet@v1
@@ -43,12 +49,6 @@ jobs:
4349
5.0.x
4450
6.0.x
4551
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,6 +95,12 @@ 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 }}
98104

99105
- name: Setup .NET
100106
uses: actions/setup-dotnet@v1
@@ -105,12 +111,6 @@ jobs:
105111
6.0.x
106112
9.0.x
107113
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)