4444
4545 - name : Setup .NET
4646 if : matrix.os == 'windows-latest'
47- uses : actions/setup-dotnet@v3
47+ uses : actions/setup-dotnet@v4
4848 with :
4949 dotnet-version : 7.0.x
5050
@@ -54,10 +54,10 @@ jobs:
5454 shell : bash
5555
5656 - name : Upload source package
57- uses : actions/upload-artifact@v3
57+ uses : actions/upload-artifact@v4
5858 if : matrix.os == 'windows-latest' && matrix.architecture == 'x64'
5959 with :
60- name : win-x64
60+ name : win-x64-source
6161 path : bin\Packages\Release\*.nupkg
6262
6363 - name : Publish untagged source package to MyGet
@@ -82,40 +82,33 @@ jobs:
8282 shell : bash
8383
8484 - name : Upload win-${{ matrix.architecture }} ${{ github.event.inputs.ReleaseType || 'Release' }}
85- uses : actions/upload-artifact@v3
85+ uses : actions/upload-artifact@v4
8686 if : matrix.os == 'windows-latest'
8787 with :
8888 name : win-${{ matrix.architecture }}
8989 path : cimgui\build\${{ matrix.architecture }}\${{ github.event.inputs.ReleaseType || 'Release' }}\*
9090
9191 - name : Upload ${{ matrix.os }} ${{ github.event.inputs.ReleaseType || 'Release' }}
92- uses : actions/upload-artifact@v3
92+ uses : actions/upload-artifact@v4
9393 if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
9494 with :
9595 name : ${{ matrix.os }}-x64
9696 path : cimgui/build/${{ github.event.inputs.ReleaseType || 'Release' }}/*
9797
98- - name : Upload Definitions Json File
99- uses : actions/upload-artifact@v3
98+ - name : Upload Json Files
99+ uses : actions/upload-artifact@v4
100100 if : matrix.os == 'windows-latest' && matrix.architecture == 'x64'
101101 with :
102102 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
111104
112105 CreateReleaseOnTagCreate :
113106 runs-on : ubuntu-latest
114107 needs : [Build]
115108 if : startsWith(github.ref, 'refs/tags/')
116109 steps :
117110 - name : Download Artifacts
118- uses : actions/download-artifact@v3
111+ uses : actions/download-artifact@v4
119112
120113 - name : Rename win-x64 and win-x86 artifacts
121114 run : |
@@ -125,7 +118,7 @@ jobs:
125118 mv win-ARM/cimgui.dll win-ARM/cimgui.win-arm.dll
126119
127120 - name : Release
128- uses : softprops/action-gh-release@v1
121+ uses : softprops/action-gh-release@v2
129122 with :
130123 files : |
131124 win-x64/cimgui.win-x64.dll
0 commit comments