File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,22 @@ jobs:
21
21
with :
22
22
dotnet-version : ' 6.0.x'
23
23
24
+ - name : Set Version Variable
25
+ env :
26
+ TAG : ${{ github.ref_name }}
27
+ run : echo "VERSION=${TAG#v}" >> $GITHUB_ENV
28
+
24
29
- name : Restore Packages
25
30
run : dotnet restore
26
31
27
32
- name : Build Solution
28
- run : dotnet build -c Release --no-restore
33
+ run : dotnet build -c Release --no-restore /p:Version=$VERSION
29
34
30
35
- name : Run Tests
31
36
run : dotnet test -c Release --no-build --verbosity normal
32
37
33
- - name : Set Version Variable
34
- env :
35
- TAG : ${{ github.ref_name }}
36
- run : echo "VERSION=${TAG#v}" >> $GITHUB_ENV
37
-
38
38
- name : Pack FeatBit.ServerSdk
39
- run : dotnet pack ./src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj -c Release --no-restore --no-build --output ${VERSION} /p:Version=$VERSION
39
+ run : dotnet pack ./src/FeatBit.ServerSdk/FeatBit.ServerSdk.csproj -c Release --no-restore --no-build --output ${VERSION}
40
40
41
41
- name : Publish NuGet Package
42
42
run : dotnet nuget push ${VERSION}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
You can’t perform that action at this time.
0 commit comments