14
14
access_token : ${{ github.token }}
15
15
- name : Checkout
16
16
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
23
17
- name : Setup .NET
24
18
uses : actions/setup-dotnet@v1
25
19
with :
@@ -31,18 +25,18 @@ jobs:
31
25
- uses : vimtor/action-zip@v1
32
26
with :
33
27
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
35
29
- name : Upload .zip as artifact
36
30
uses : actions/upload-artifact@v2
37
31
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
40
34
if-no-files-found : error
41
35
42
36
- name : Puts the release on GitHub
43
37
uses : ncipollo/release-action@v1
44
38
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"
46
40
token : ${{ secrets.GITHUB_TOKEN }}
47
41
tag : 0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}
48
42
name : PapyrusCs - 0.6.${{ steps.build-number.outputs.BUILD_NUMBER }}
0 commit comments