File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1515 - name : Checkout code
1616 uses : actions/checkout@v2
1717
18- - name : Extract tag name
19- id : tag
20- uses : actions/github-script@0.2.0
21- with :
22- github-token : ${{ secrets.GITHUB_TOKEN }}
23- script : |
24- return context.payload.ref.replace(/\/refs\/tags\//, '');
18+ - name : Get the version
19+ id : get_version
20+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
2521
2622 - name : Setup DotNet
2723 uses : actions/setup-dotnet@v1
@@ -60,15 +56,15 @@ jobs:
6056 run : |
6157 export VALHEIM_INSTALL=~/VHINSTALL/
6258 xbuild ${{ env.PROJECT-NAME }}.sln /p:Configuration=Release
63- mv obj/Release/${{ env.PROJECT-NAME }}.dll ${{ env.PROJECT-NAME }}-${{ steps.tag .outputs.result }}.dll
59+ mv obj/Release/${{ env.PROJECT-NAME }}.dll ${{ env.PROJECT-NAME }}-${{ steps.get_version .outputs.VERSION }}.dll
6460 xbuild ${{ env.PROJECT-NAME }}.sln /p:Configuration=Debug
65- mv obj/Debug/${{ env.PROJECT-NAME }}.dll ${{ env.PROJECT-NAME }}-DEBUG-${{ steps.tag .outputs.result }}.dll
61+ mv obj/Debug/${{ env.PROJECT-NAME }}.dll ${{ env.PROJECT-NAME }}-DEBUG-${{ steps.get_version .outputs.VERSION }}.dll
6662
6763 - name : Release
6864 uses : softprops/action-gh-release@v1
6965 with :
7066 files : |
71- ${{ env.PROJECT-NAME }}-${{ steps.tag .outputs.result }}.dll
72- ${{ env.PROJECT-NAME }}-DEBUG-${{ steps.tag .outputs.result }}.dll
67+ ${{ env.PROJECT-NAME }}-${{ steps.get_version .outputs.VERSION }}.dll
68+ ${{ env.PROJECT-NAME }}-DEBUG-${{ steps.get_version .outputs.VERSION }}.dll
7369 env :
7470 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments