Skip to content

Commit 3888d81

Browse files
authored
Update dotnet.yml
1 parent 4f7cecb commit 3888d81

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/dotnet.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
access_token: ${{ github.token }}
1515
- name: Checkout
1616
uses: actions/checkout@v2
17-
- name: Calculate build number
18-
id: build-number
19-
run: |
20-
BUILD_NUMBER=$(($GITHUB_RUN_NUMBER)) #to stay above jenkins
21-
echo "Build number: $BUILD_NUMBER"
22-
echo ::set-output name=BUILD_NUMBER::$BUILD_NUMBER
2317
- name: Setup .NET
2418
uses: actions/setup-dotnet@v1
2519
with:
@@ -31,18 +25,18 @@ jobs:
3125
- uses: vimtor/action-zip@v1
3226
with:
3327
files: PapyrusCs/bin/Release/netcoreapp3.1/win-x64/publish/
34-
dest: papyruscs-dotnetcore-0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}-win64.zip
28+
dest: papyruscs-dotnetcore-0.6.${{github.run_number}-win64.zip
3529
- name: Upload .zip as artifact
3630
uses: actions/upload-artifact@v2
3731
with:
38-
name: papyruscs-dotnetcore-0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}-win64.zip
39-
path: papyruscs-dotnetcore-0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}-win64.zip
32+
name: papyruscs-dotnetcore-0.6.${{github.run_number}-win64.zip
33+
path: papyruscs-dotnetcore-0.6.${{github.run_number}-win64.zip
4034
if-no-files-found: error
4135

4236
- name: Puts the release on GitHub
4337
uses: ncipollo/release-action@v1
4438
with:
45-
artifacts: "papyruscs-dotnetcore-0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}-win64.zip"
39+
artifacts: "papyruscs-dotnetcore-0.6.${{github.run_number}-win64.zip"
4640
token: ${{ secrets.GITHUB_TOKEN }}
4741
tag: 0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}
4842
name: PapyrusCs - 0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}

0 commit comments

Comments
 (0)