File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
- runs-on : windows -latest
14
+ runs-on : ubuntu -latest
15
15
defaults :
16
16
run :
17
17
working-directory : src
@@ -30,17 +30,11 @@ jobs:
30
30
with :
31
31
dotnet-version : 3.1.x
32
32
33
- - name : Restore dependencies
34
- run : dotnet restore
35
-
36
- - name : Build
37
- run : dotnet build --no-restore
38
-
39
- - name : Test
40
- run : dotnet test --no-build
33
+ - name : Generate version
34
+ run : echo "PACKAGE_VERSION=$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
41
35
42
36
- name : Generate Package
43
- run : dotnet pack -c Release -o out -p:PackageVersion=$PACKAGE_MAJOR_VERSION.$PACKAGE_MINOR_VERSION.$GITHUB_RUN_NUMBER -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
37
+ run : dotnet pack -c Release -o out -p:PackageVersion=${{env.PACKAGE_VERSION}} -p:RepositoryUrl=${{env.CURRENT_REPO_URL}}
44
38
45
39
- name : Publish the package to nuget.org
46
40
run : dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols true -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments