@@ -23,32 +23,32 @@ jobs:
2323 with :
2424 setAllVars : true
2525 - name : Setting VERSION and BRANCH env
26- run : echo "::set-env name=VERSION::$NBGV_NuGetPackageVersion "
26+ run : echo "::set-env name=VERSION::$NBGV_SimpleVersion$NBGV_PrereleaseVersion "
2727 - name : Update tokens in project files
2828 uses : cschleiden/replace-tokens@v1
2929 with :
3030 files : ' ["*.csproj", "**/*.csproj"]'
3131 - uses : actions/setup-dotnet@v1
3232 with :
33- dotnet-version : ' 3.1.202'
33+ dotnet-version : ' 3.1.202'
3434 - name : Building library
3535 run : |
3636 dotnet restore src
37- dotnet build src/bunit.core/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
38- dotnet build src/bunit.web/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
39- dotnet build src/bunit.xunit/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
40- dotnet build src/bunit.testassets/ -c Release --no-restore
37+ dotnet build src/bunit.core/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
38+ dotnet build src/bunit.web/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
39+ dotnet build src/bunit.xunit/ -c Release --no-restore -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
40+ dotnet build src/bunit.testassets/ -c Release --no-restore
4141 - name : Running unit tests
4242 run : |
4343 dotnet test src/bunit.core.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
4444 dotnet test src/bunit.web.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
4545 dotnet test src/bunit.xunit.tests/ -c Release --no-restore --verbosity normal /nowarn:CS1591
4646 - name : Creating library package
4747 run : |
48- dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
49- dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
50- dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
51- dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
48+ dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
49+ dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
50+ dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
51+ dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/packages -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true /p:PublicRelease=true
5252 - name : Buidling template package
5353 run : dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/packages
5454 - name : Verifying template
6767 done
6868 shell : bash
6969 # - name: Push packages to GitHub Package Registry
70- # run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/egil/index.json --skip-duplicate
70+ # run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/egil/index.json --skip-duplicate
0 commit comments