Skip to content

Commit f6aa74b

Browse files
committed
updated workflow
1 parent 6867bcd commit f6aa74b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/CI.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
name: Build and verify library
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Getting branch name
18-
run: echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
1917
- uses: actions/checkout@v2
2018
with:
2119
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
2220
- uses: dotnet/nbgv@master
2321
with:
2422
setAllVars: true
25-
- run: echo "NBGV_SemVer2 $NBGV_SemVer2"
23+
- run: echo "NBGV_SemVer2 $NBGV_SemVer2"
24+
- run: echo "::set-env name=VERSION::$NBGV_NuGetPackageVersion"
25+
- run: echo "::set-env name=BRANCH::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
2626
- name: Update tokens in project files
2727
uses: cschleiden/replace-tokens@v1
2828
with:
@@ -45,11 +45,11 @@ jobs:
4545
- name: Creating library package
4646
run: |
4747
dotnet pack src/bunit.core/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
48-
dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
49-
dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
50-
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:version=$VERSION -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
48+
dotnet pack src/bunit.web/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
49+
dotnet pack src/bunit.xunit/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
50+
dotnet pack src/bunit/ -c Release -o ${GITHUB_WORKSPACE}/lib -p:RepositoryBranch=$BRANCH -p:ContinuousIntegrationBuild=true -p:DeterministicSourcePaths=true
5151
- name: Buidling template package
52-
run: dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/templates -p:version=$VERSION
52+
run: dotnet pack src/bunit.template/ -c Release -o ${GITHUB_WORKSPACE}/templates
5353
- name: Verifying template
5454
run: |
5555
dotnet new --install ${GITHUB_WORKSPACE}/templates/bunit.template.$VERSION.nupkg

0 commit comments

Comments
 (0)