@@ -5,57 +5,49 @@ name: .NET
5
5
6
6
on :
7
7
push :
8
- branches : [ "main" ]
8
+ branches : ["main"]
9
9
pull_request :
10
- branches : [ "main" ]
10
+ branches : ["main"]
11
11
12
12
jobs :
13
13
build :
14
-
15
14
runs-on : windows-latest
16
15
17
16
steps :
18
-
19
- - uses : actions/checkout@v4
20
- - name : Setup .NET
21
- uses : actions/setup-dotnet@v4
22
- with :
23
- dotnet-version : 7.0.x
24
-
25
-
26
- - name : Get Commit short hash
27
- id : vars
28
- run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
29
- shell : bash
30
-
31
- - name : Restore dependencies and build
32
- run : |
33
- dotnet restore
34
- dotnet publish /p:OutputType=WinExe
35
-
36
- - name : Create Artifact
37
- run : |
38
- cp -r ./glossaries ./db changelog.md oo2core_6_win64.dll ./bin/Release/net7.0-windows/publish
39
- #7z a SoulsModTranslator-${{steps.vars.outputs.sha_short}}.zip ./bin/Release/net7.0-windows/publish
40
- shell : bash
41
-
42
- - uses : actions/upload-artifact@v4
17
+ - uses : actions/checkout@v4
18
+ - name : Setup .NET
19
+ uses : actions/setup-dotnet@v4
20
+ with :
21
+ dotnet-version : 7.0.x
22
+
23
+ - name : Get Commit short hash
24
+ id : vars
25
+ run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
26
+ run : echo "latest_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
27
+ shell : bash
28
+
29
+ - name : Restore dependencies and build
30
+ run : |
31
+ dotnet restore
32
+ dotnet publish /p:OutputType=WinExe
33
+
34
+ - name : Create Artifact
35
+ run : |
36
+ cp -r ./glossaries ./db changelog.md oo2core_6_win64.dll ./bin/Release/net7.0-windows/publish
37
+ #7z a SoulsModTranslator${{steps.vars.outputs.latest_tag}}.zip ./bin/Release/net7.0-windows/publish
38
+ python create_release_note.py
39
+ shell : bash
40
+
41
+ - uses : actions/upload-artifact@v4
42
+ with :
43
+ name : SoulsModTranslator-${{steps.vars.outputs.sha_short}}
44
+ path : ./bin/Release/net7.0-windows/publish
45
+
46
+ - name : Release
47
+ uses : softprops/action-gh-release@v2
48
+ if : startsWith(github.ref, 'refs/tags/')
43
49
with :
44
- name : SoulsModTranslator-${{steps.vars.outputs.sha_short}}
45
- path : ./bin/Release/net7.0-windows/publish
46
-
47
-
48
-
49
- # - name: Release
50
- # uses: softprops/action-gh-release@v2
51
- # if: startsWith(github.ref, 'refs/tags/')
52
- # with:
53
- # body_path: ${{ github.workspace }}-CHANGELOG.txt
54
- # files: |
55
- # ${{steps.vars2.outputs.archive_name}}.zip
56
- # repository: hhhxiao/SoulsModTranslator
57
-
58
-
59
-
60
-
61
-
50
+ body_path : ${{ github.workspace }}/release_note
51
+ files : |
52
+ SoulsModTranslator${{steps.vars.outputs.latest_tag}}.zip
53
+ repository : hhhxiao/SoulsModTranslator
0 commit comments