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 15
15
- name : Checkout code
16
16
uses : actions/checkout@v2
17
17
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\//}
25
21
26
22
- name : Setup DotNet
27
23
uses : actions/setup-dotnet@v1
@@ -60,15 +56,15 @@ jobs:
60
56
run : |
61
57
export VALHEIM_INSTALL=~/VHINSTALL/
62
58
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
64
60
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
66
62
67
63
- name : Release
68
64
uses : softprops/action-gh-release@v1
69
65
with :
70
66
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
73
69
env :
74
70
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments