44
44
45
45
- name : Setup .NET
46
46
if : matrix.os == 'windows-latest'
47
- uses : actions/setup-dotnet@v3
47
+ uses : actions/setup-dotnet@v4
48
48
with :
49
49
dotnet-version : 7.0.x
50
50
@@ -54,10 +54,10 @@ jobs:
54
54
shell : bash
55
55
56
56
- name : Upload source package
57
- uses : actions/upload-artifact@v3
57
+ uses : actions/upload-artifact@v4
58
58
if : matrix.os == 'windows-latest' && matrix.architecture == 'x64'
59
59
with :
60
- name : win-x64
60
+ name : win-x64-source
61
61
path : bin\Packages\Release\*.nupkg
62
62
63
63
- name : Publish untagged source package to MyGet
@@ -82,40 +82,33 @@ jobs:
82
82
shell : bash
83
83
84
84
- name : Upload win-${{ matrix.architecture }} ${{ github.event.inputs.ReleaseType || 'Release' }}
85
- uses : actions/upload-artifact@v3
85
+ uses : actions/upload-artifact@v4
86
86
if : matrix.os == 'windows-latest'
87
87
with :
88
88
name : win-${{ matrix.architecture }}
89
89
path : cimgui\build\${{ matrix.architecture }}\${{ github.event.inputs.ReleaseType || 'Release' }}\*
90
90
91
91
- name : Upload ${{ matrix.os }} ${{ github.event.inputs.ReleaseType || 'Release' }}
92
- uses : actions/upload-artifact@v3
92
+ uses : actions/upload-artifact@v4
93
93
if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
94
94
with :
95
95
name : ${{ matrix.os }}-x64
96
96
path : cimgui/build/${{ github.event.inputs.ReleaseType || 'Release' }}/*
97
97
98
- - name : Upload Definitions Json File
99
- uses : actions/upload-artifact@v3
98
+ - name : Upload Json Files
99
+ uses : actions/upload-artifact@v4
100
100
if : matrix.os == 'windows-latest' && matrix.architecture == 'x64'
101
101
with :
102
102
name : JsonFiles
103
- path : cimgui\generator\output\definitions.json
104
-
105
- - name : Upload structs_and_enums Json File
106
- uses : actions/upload-artifact@v3
107
- if : matrix.os == 'windows-latest' && matrix.architecture == 'x64'
108
- with :
109
- name : JsonFiles
110
- path : cimgui\generator\output\structs_and_enums.json
103
+ path : cimgui\generator\output\*.json
111
104
112
105
CreateReleaseOnTagCreate :
113
106
runs-on : ubuntu-latest
114
107
needs : [Build]
115
108
if : startsWith(github.ref, 'refs/tags/')
116
109
steps :
117
110
- name : Download Artifacts
118
- uses : actions/download-artifact@v3
111
+ uses : actions/download-artifact@v4
119
112
120
113
- name : Rename win-x64 and win-x86 artifacts
121
114
run : |
@@ -125,7 +118,7 @@ jobs:
125
118
mv win-ARM/cimgui.dll win-ARM/cimgui.win-arm.dll
126
119
127
120
- name : Release
128
- uses : softprops/action-gh-release@v1
121
+ uses : softprops/action-gh-release@v2
129
122
with :
130
123
files : |
131
124
win-x64/cimgui.win-x64.dll
0 commit comments