Skip to content

Commit 8492d67

Browse files
Features/net5 (#9)
* README.md * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * checkpoint * multi targeting * flows * build both envs * name * fix bugs * test * test * net 5 v * source * package version * package
1 parent 380de9c commit 8492d67

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/publish-package.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
build:
14-
runs-on: windows-latest
14+
runs-on: ubuntu-latest
1515
defaults:
1616
run:
1717
working-directory: src
@@ -30,17 +30,11 @@ jobs:
3030
with:
3131
dotnet-version: 3.1.x
3232

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
4135

4236
- 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}}
4438

4539
- name: Publish the package to nuget.org
4640
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols true -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)