Skip to content

Commit 9d5991e

Browse files
committed
Fix Build Script (Debug 3)
1 parent e1c9739 commit 9d5991e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
dotnet-version: 5.0.100
1919
- name: Build Version
2020
# run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}) // deprecated
21-
run: echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
22-
- run: echo Version $RELEASE_VERSION
23-
- run: echo INPUT $GITHUB_REF
21+
run: echo "RELEASE_VERSION=$($env:GITHUB_REF.SubString(11))" >> $env:GITHUB_ENV
22+
- run: echo Version $env:RELEASE_VERSION
23+
- run: echo INPUT $env:GITHUB_REF
2424
- name: Build Project
25-
run: dotnet build --configuration Release -p:Version=$RELEASE_VERSION
25+
run: dotnet build --configuration Release -p:Version=$env:RELEASE_VERSION
2626
- name: Test Project
2727
run: dotnet test --no-build --configuration Release --logger trx
2828
- name: Pack Project
29-
run: dotnet pack --no-build --output ./artifacts --configuration Release -p:Version=$RELEASE_VERSION
29+
run: dotnet pack --no-build --output ./artifacts --configuration Release -p:Version=$env:RELEASE_VERSION
3030
- uses: actions/upload-artifact@v1
3131
with:
3232
name: artifacts

0 commit comments

Comments
 (0)