Skip to content

Commit 9155027

Browse files
committed
Update Travis CI
1 parent b773087 commit 9155027

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ script:
2323
- dotnet test --configuration release --no-restore --verbosity minimal
2424

2525
before_deploy:
26-
- dotnet pack --configuration release --verbosity minimal -p:PackageVersion=$TRAVIS_TAG -p:RepositoryBranch=$TRAVIS_BUILD_NUMBER -p:RepositoryCommit=$TRAVIS_COMMIT -p:PackageOutputPath=.
26+
- dotnet pack --configuration release --verbosity minimal -p:PackageVersion="${TRAVIS_TAG}.${$TRAVIS_BUILD_NUMBER}" -p:RepositoryBranch=$TRAVIS_BRANCH -p:RepositoryCommit=$TRAVIS_COMMIT -p:PackageOutputPath=.
2727

2828
deploy:
2929
provider: releases
3030
api_key: $GH_TOKEN
3131
file_glob: true
32-
file: "bin/Release/UnityContainerAttributeRegistration.1.0.0.nupkg"
32+
file: "bin/Release/UnityContainerAttributeRegistration.${$TRAVIS_TAG}.nupkg"
3333
skip_cleanup: true
3434
overwrite: true
3535
on:
3636
tags: true
3737

3838
after_deploy:
3939
- dotnet nuget add source https://nuget.pkg.github.com/ManticSic/index.json -n github -u ManticSic -p $GH_TOKEN
40-
- dotnet nuget push "bin/Release/UnityContainerAttributeRegistration.1.0.0.nupkg" --source "github"
40+
- dotnet nuget push "bin/Release/UnityContainerAttributeRegistration.${TRAVIS_TAG}.nupkg" --source "github"

0 commit comments

Comments
 (0)