@@ -46,27 +46,27 @@ jobs:
46
46
echo "build_dir: ${{ github.event.inputs.build_dir }}"
47
47
48
48
- name : Checkout latest build and submodules
49
- uses : actions/checkout@v2
49
+ uses : actions/checkout@v4
50
50
if : github.event.inputs.ref == ''
51
51
with :
52
52
submodules : recursive
53
53
54
54
- name : Checkout specific build and submodules
55
- uses : actions/checkout@v2
55
+ uses : actions/checkout@v4
56
56
if : github.event.inputs.ref != ''
57
57
with :
58
58
ref : ${{ github.event.inputs.ref }}
59
59
submodules : recursive
60
60
61
61
- name : Add MSBuild to PATH
62
- uses : microsoft/setup-msbuild@v1.0.2
62
+ uses : microsoft/setup-msbuild@v2
63
63
64
64
- name : Declare some variables
65
65
id : vars
66
66
shell : bash
67
67
run : |
68
- echo "##[set-output name= branch;] $(echo ${GITHUB_REF#refs/heads/})"
69
- echo "::set-output name= sha_short:: $(git rev-parse --short HEAD)"
68
+ echo "branch= $(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
69
+ echo "sha_short= $(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
70
70
71
71
- name : Enable SimpleWindowSwitcher support for newer Windows SDKs
72
72
shell : cmd
80
80
exit /b 0
81
81
82
82
- name : Setup NuGet
83
- uses : nuget/setup-nuget@v1
83
+ uses : nuget/setup-nuget@v2
84
84
85
85
- name : Restore NuGet packages
86
86
run : |
@@ -135,7 +135,7 @@ jobs:
135
135
exit /b 0
136
136
137
137
- name : Upload artifacts
138
- uses : actions/upload-artifact@v2
138
+ uses : actions/upload-artifact@v4
139
139
with :
140
140
name : ep_bin_multi_${{ steps.vars.outputs.sha_short }}_${{ steps.vars.outputs.branch }}
141
141
path : |
@@ -146,65 +146,45 @@ jobs:
146
146
working-directory : build/Release
147
147
if : github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
148
148
run : |
149
- echo "::set-output name= data:: $(./ep_generate_release_name.exe)"
149
+ echo "data= $(./ep_generate_release_name.exe)" >> $GITHUB_OUTPUT
150
150
id : release_name
151
151
152
152
- name : Generate release notes
153
153
shell : bash
154
154
working-directory : build/Release
155
155
if : github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
156
156
run : |
157
- MY_STRING=$(./ep_generate_release_description.exe ${{ steps.vars.outputs.sha_short }} ${{ steps.vars.outputs.branch }} ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
158
- MY_STRING="${MY_STRING//'%'/'%25'}"
159
- MY_STRING="${MY_STRING//$'\n'/'%0A'}"
160
- MY_STRING="${MY_STRING//$'\r'/'%0D'}"
161
- echo "::set-output name=data::$MY_STRING"
157
+ echo "data<<EP_RELEASE_DESCRIPTION_DELIM" >> $GITHUB_OUTPUT
158
+ echo "$(./ep_generate_release_description.exe ${{ steps.vars.outputs.sha_short }} ${{ steps.vars.outputs.branch }} ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_OUTPUT
159
+ echo "EP_RELEASE_DESCRIPTION_DELIM" >> $GITHUB_OUTPUT
162
160
id : release_description
163
161
164
162
- name : Create/update release (valinet)
165
- uses : actions/create- release@v1
163
+ uses : softprops/action-gh- release@v2
166
164
if : github.repository_owner == 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
167
165
id : create_release
168
166
with :
169
167
draft : false
170
168
prerelease : ${{ !startsWith(github.event.head_commit.message, 'rel_') }}
171
- release_name : ${{ steps.release_name.outputs.data }}
169
+ name : ${{ steps.release_name.outputs.data }}
172
170
tag_name : ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }}
173
171
body : ${{ steps.release_description.outputs.data }}
174
- env :
175
- GITHUB_TOKEN : ${{ secrets.PAT }}
176
-
177
- - name : Upload setup (valinet)
178
- uses : actions/upload-release-asset@v1
179
- if : github.repository_owner == 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
180
- with :
181
- upload_url : ${{ steps.create_release.outputs.upload_url }}
182
- asset_path : ./build/Release/ep_setup.exe
183
- asset_name : ep_setup.exe
184
- asset_content_type : application/x-msdownload
172
+ files : |
173
+ ./build/Release/ep_setup.exe
185
174
env :
186
175
GITHUB_TOKEN : ${{ secrets.PAT }}
187
176
188
177
- name : Create/update release (forks)
189
- uses : actions/create- release@v1
178
+ uses : softprops/action-gh- release@v2
190
179
if : github.repository_owner != 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
191
180
id : create_release_fork
192
181
with :
193
182
draft : false
194
183
prerelease : ${{ !startsWith(github.event.head_commit.message, 'rel_') }}
195
- release_name : ${{ steps.release_name.outputs.data }}
184
+ name : ${{ steps.release_name.outputs.data }}
196
185
tag_name : ${{ steps.release_name.outputs.data }}_${{ steps.vars.outputs.sha_short }}
197
186
body : ${{ steps.release_description.outputs.data }}
198
- env :
199
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
200
-
201
- - name : Upload setup (forks)
202
- uses : actions/upload-release-asset@v1
203
- if : github.repository_owner != 'valinet' && github.ref == 'refs/heads/master' && github.event.inputs.ref == ''
204
- with :
205
- upload_url : ${{ steps.create_release_fork.outputs.upload_url }}
206
- asset_path : ./build/Release/ep_setup.exe
207
- asset_name : ep_setup.exe
208
- asset_content_type : application/x-msdownload
187
+ files : |
188
+ ./build/Release/ep_setup.exe
209
189
env :
210
190
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments