Skip to content

Commit 301e6bf

Browse files
committed
--middle actions
1 parent 4628809 commit 301e6bf

7 files changed

Lines changed: 67 additions & 111 deletions

File tree

.github/workflows/build-icu4c.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,7 @@ env:
1313
ICU4C_VERREL: "76-1"
1414

1515
jobs:
16-
delete_assets:
17-
name: Delete Assets
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: andreaswilli/delete-release-assets-action@v4.0.0
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
tag: icu4c-${{ env.ICU4C_VERSION }}
25-
deleteOnlyFromDrafts: false
26-
27-
28-
# Windows MSVC distribution release
2916
windows-msvc-2019:
30-
needs: delete_assets
3117
runs-on: windows-2019
3218
strategy:
3319
fail-fast: false
@@ -176,6 +162,12 @@ jobs:
176162
echo "gcc_exe_info=$(gcc --version > gcc_version 2>&1 && head -n 1 gcc_version)" >> $GITHUB_OUTPUT
177163
rm -rf $USER_MINGW_DIR
178164
165+
- uses: andreaswilli/delete-release-assets-action@v4.0.0
166+
with:
167+
github_token: ${{ secrets.GITHUB_TOKEN }}
168+
tag: icu4c-${{ env.ICU4C_VERSION }}
169+
deleteOnlyFromDrafts: false
170+
179171
- name: Upload icu4c-${{ env.ICU4C_VERSION }}
180172
uses: softprops/action-gh-release@v2
181173
with:

.github/workflows/build-oneDNN.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,10 @@ env:
1313
ONEDNN_VERSION: "3.7.2"
1414

1515
jobs:
16-
delete_assets:
17-
name: Delete Assets
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: andreaswilli/delete-release-assets-action@v4.0.0
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
tag: oneDNN-${{ env.ONEDNN_VERSION }}
25-
deleteOnlyFromDrafts: false
26-
2716
build_with_windows-2019:
28-
needs: delete_assets
2917
runs-on: windows-2019
3018
steps:
31-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
3220

3321
- name: Install or Download Dependencies
3422
run: |
@@ -111,6 +99,12 @@ jobs:
11199
echo ~~~~~~~~~~~~ msvc2019 build end ~~~~~~~~~~~~
112100
rm -rf $WSP_ROOT/oneDNN-${{ env.ONEDNN_VERSION }}-msvc2019-x64
113101
102+
- uses: andreaswilli/delete-release-assets-action@v4.0.0
103+
with:
104+
github_token: ${{ secrets.GITHUB_TOKEN }}
105+
tag: oneDNN-${{ env.ONEDNN_VERSION }}
106+
deleteOnlyFromDrafts: false
107+
114108
- name: Upload oneDNN-${{ env.ONEDNN_VERSION }}
115109
uses: softprops/action-gh-release@v2
116110
with:

.github/workflows/build-opencv.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,7 @@ env:
1313
OPENCV_VERSION: "3.4.20"
1414

1515
jobs:
16-
delete_assets:
17-
name: Delete Assets
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: andreaswilli/delete-release-assets-action@v4.0.0
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
tag: opencv-${{ env.OPENCV_VERSION }}
25-
deleteOnlyFromDrafts: false
26-
2716
build_with_windows-2019:
28-
needs: delete_assets
2917
runs-on: windows-2019
3018
steps:
3119
- uses: actions/checkout@v4
@@ -163,6 +151,12 @@ jobs:
163151
echo ~~~~~~~~~~~~ msvc2019 build end ~~~~~~~~~~~~
164152
rm -rf $WSP_ROOT/opencv-${{ env.OPENCV_VERSION }}-msvc2019-x86
165153
154+
- uses: andreaswilli/delete-release-assets-action@v4.0.0
155+
with:
156+
github_token: ${{ secrets.GITHUB_TOKEN }}
157+
tag: opencv-${{ env.OPENCV_VERSION }}
158+
deleteOnlyFromDrafts: false
159+
166160
- name: Upload opencv-${{ env.OPENCV_VERSION }}
167161
uses: softprops/action-gh-release@v2
168162
with:

.github/workflows/build-openssl.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,7 @@ env:
1313
OpenSSL_VERSION: "3.5.0"
1414

1515
jobs:
16-
delete_assets:
17-
name: Delete Assets
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: andreaswilli/delete-release-assets-action@v4.0.0
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
tag: openssl-${{ env.OpenSSL_VERSION }}
25-
deleteOnlyFromDrafts: false
26-
2716
build_with_msvc-2019:
28-
needs: delete_assets
2917
runs-on: windows-2019
3018
steps:
3119
- uses: actions/checkout@v4
@@ -80,6 +68,12 @@ jobs:
8068
rm -rf openssl-openssl-${{ env.OpenSSL_VERSION }}
8169
rm -rf ${{ github.workspace }}/openssl-${{ env.OpenSSL_VERSION }}-msvc2019-x86
8270
71+
- uses: andreaswilli/delete-release-assets-action@v4.0.0
72+
with:
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
74+
tag: openssl-${{ env.OpenSSL_VERSION }}
75+
deleteOnlyFromDrafts: false
76+
8377
- name: Upload OpenSSL-${{ env.OpenSSL_VERSION }}
8478
uses: softprops/action-gh-release@v2
8579
with:

.github/workflows/build-protobuf-lite.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,10 @@ env:
1313
PROTOBUF_VERSION: "21.12"
1414

1515
jobs:
16-
delete_assets:
17-
name: Delete Assets
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: actions/checkout@v3
21-
- uses: andreaswilli/delete-release-assets-action@v4.0.0
22-
with:
23-
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
tag: protobuf-3.${{ env.PROTOBUF_VERSION }}
25-
deleteOnlyFromDrafts: false
26-
2716
build_with_windows-2019:
28-
needs: delete_assets
2917
runs-on: windows-2019
3018
steps:
31-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
3220

3321
- name: Install or Download Dependencies
3422
run: |
@@ -159,6 +147,12 @@ jobs:
159147
echo ~~~~~~~~~~~~ msvc2019 build end ~~~~~~~~~~~~
160148
rm -rf $WSP_ROOT/protobuf-${{ env.PROTOBUF_VERSION }}-msvc2019-x86
161149
150+
- uses: andreaswilli/delete-release-assets-action@v4.0.0
151+
with:
152+
github_token: ${{ secrets.GITHUB_TOKEN }}
153+
tag: protobuf-3.${{ env.PROTOBUF_VERSION }}
154+
deleteOnlyFromDrafts: false
155+
162156
- name: Upload Protocol Buffers ${{ env.PROTOBUF_VERSION }}
163157
uses: softprops/action-gh-release@v2
164158
with:

.github/workflows/get-msvc-2019-tools.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
delete_msvc2019_latest:
9-
name: Delete tag msvc2019_latest
10-
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'get_msvc2019') && github.event.issue.user.login == 'nonwill' && github.triggering_actor == 'nonwill' && github.event.comment.user.login == 'nonwill' }}
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Check out Git repository
14-
uses: actions/checkout@v1
15-
- name: Delete msvc2019_latest assets
16-
uses: andreaswilli/delete-release-assets-action@v3.0.0
17-
with:
18-
github_token: ${{ secrets.GITHUB_TOKEN }}
19-
tag: msvc2019_latest
20-
deleteOnlyFromDrafts: false
21-
228
get_latest_msvc2019:
23-
needs: delete_msvc2019_latest
249
name: Get latest msvc 2019 build tools
2510
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'get_msvc2019') && github.event.issue.user.login == 'nonwill' && github.triggering_actor == 'nonwill' && github.event.comment.user.login == 'nonwill' }}
2611
runs-on: windows-2019
@@ -88,77 +73,86 @@ jobs:
8873
cd ..
8974
9075
- name: zip Llvm
91-
uses: thedoctor0/zip-release@0.7.1
76+
uses: thedoctor0/zip-release@0.7.6
9277
with:
9378
type: 'zip'
9479
path: Llvm
9580
filename: 'Llvm.zip'
9681

9782
- name: zip VC_Auxiliary
98-
uses: thedoctor0/zip-release@0.7.1
83+
uses: thedoctor0/zip-release@0.7.6
9984
with:
10085
type: 'zip'
10186
path: Auxiliary
10287
filename: 'vc_Auxiliary.zip'
10388

10489
- name: zip atlmfc
105-
uses: thedoctor0/zip-release@0.7.1
90+
uses: thedoctor0/zip-release@0.7.6
10691
with:
10792
type: 'zip'
10893
path: vcToolsInstallDir/atlmfc
10994
filename: 'atlmfc.zip'
11095

11196
- name: zip Auxiliary
112-
uses: thedoctor0/zip-release@0.7.1
97+
uses: thedoctor0/zip-release@0.7.6
11398
with:
11499
type: 'zip'
115100
path: vcToolsInstallDir/Auxiliary
116101
filename: 'Auxiliary.zip'
117102

118103
- name: zip crt
119-
uses: thedoctor0/zip-release@0.7.1
104+
uses: thedoctor0/zip-release@0.7.6
120105
with:
121106
type: 'zip'
122107
path: vcToolsInstallDir/crt
123108
filename: 'crt.zip'
124109

125110
- name: zip include
126-
uses: thedoctor0/zip-release@0.7.1
111+
uses: thedoctor0/zip-release@0.7.6
127112
with:
128113
type: 'zip'
129114
path: vcToolsInstallDir/include
130115
filename: 'include.zip'
131116

132117
- name: zip lib/x64
133-
uses: thedoctor0/zip-release@0.7.1
118+
uses: thedoctor0/zip-release@0.7.6
134119
with:
135120
type: 'zip'
136121
path: vcToolsInstallDir/lib/x64
137122
filename: 'lib_x64.zip'
138123

139124
- name: zip lib/x86
140-
uses: thedoctor0/zip-release@0.7.1
125+
uses: thedoctor0/zip-release@0.7.6
141126
with:
142127
type: 'zip'
143128
path: vcToolsInstallDir/lib/x86
144129
filename: 'lib_x86.zip'
145130

146131
- name: zip bin/Hostx64
147-
uses: thedoctor0/zip-release@0.7.1
132+
uses: thedoctor0/zip-release@0.7.6
148133
with:
149134
type: 'zip'
150135
path: vcToolsInstallDir/bin/Hostx64
151136
filename: 'bin_Hostx64.zip'
152137

153138
- name: zip bin/Hostx86
154-
uses: thedoctor0/zip-release@0.7.1
139+
uses: thedoctor0/zip-release@0.7.6
155140
with:
156141
type: 'zip'
157142
path: vcToolsInstallDir/bin/Hostx86
158143
filename: 'bin_Hostx86.zip'
159144

145+
- name: Check out Git repository
146+
uses: actions/checkout@v4
147+
- name: Delete msvc2019_latest assets
148+
uses: andreaswilli/delete-release-assets-action@v4.0.0
149+
with:
150+
github_token: ${{ secrets.GITHUB_TOKEN }}
151+
tag: msvc2019_latest
152+
deleteOnlyFromDrafts: false
153+
160154
- name: Create Release and Upload Release Asset
161-
uses: softprops/action-gh-release@v1
155+
uses: softprops/action-gh-release@v2
162156
with:
163157
tag_name: msvc2019_latest
164158
name: Latest msvc-2019 build tools for Windows x86/x64

.github/workflows/get-win10sdk-tools.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
delete_win10sdk_latest:
9-
name: Delete tag win10sdk_latest
10-
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'get_win10sdk') && github.event.issue.user.login == 'nonwill' && github.triggering_actor == 'nonwill' && github.event.comment.user.login == 'nonwill' }}
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Check out Git repository
14-
uses: actions/checkout@v1
15-
- name: Delete win10sdk_latest assets
16-
uses: andreaswilli/delete-release-assets-action@v3.0.0
17-
with:
18-
github_token: ${{ secrets.GITHUB_TOKEN }}
19-
tag: win10sdk_latest
20-
deleteOnlyFromDrafts: false
21-
228
get_latest_win10sdk:
23-
needs: delete_win10sdk_latest
249
name: Get latest win10sdk build tools
2510
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'get_win10sdk') && github.event.issue.user.login == 'nonwill' && github.triggering_actor == 'nonwill' && github.event.comment.user.login == 'nonwill' }}
2611
runs-on: windows-2019
@@ -91,42 +76,51 @@ jobs:
9176
cd ..
9277
9378
- name: zip bin
94-
uses: thedoctor0/zip-release@0.7.1
79+
uses: thedoctor0/zip-release@0.7.6
9580
with:
9681
type: 'zip'
9782
path: WindowsSdkDir/bin
9883
filename: 'bin.zip'
9984

10085
- name: zip Debuggers
101-
uses: thedoctor0/zip-release@0.7.1
86+
uses: thedoctor0/zip-release@0.7.6
10287
with:
10388
type: 'zip'
10489
path: WindowsSdkDir/Debuggers
10590
filename: 'Debuggers.zip'
10691

10792
- name: zip Include
108-
uses: thedoctor0/zip-release@0.7.1
93+
uses: thedoctor0/zip-release@0.7.6
10994
with:
11095
type: 'zip'
11196
path: WindowsSdkDir/Include
11297
filename: 'Include.zip'
11398

11499
- name: zip Lib
115-
uses: thedoctor0/zip-release@0.7.1
100+
uses: thedoctor0/zip-release@0.7.6
116101
with:
117102
type: 'zip'
118103
path: WindowsSdkDir/Lib
119104
filename: 'Lib.zip'
120105

121106
- name: zip Source
122-
uses: thedoctor0/zip-release@0.7.1
107+
uses: thedoctor0/zip-release@0.7.6
123108
with:
124109
type: 'zip'
125110
path: WindowsSdkDir/Source
126111
filename: 'Source.zip'
127112

113+
- name: Check out Git repository
114+
uses: actions/checkout@v4
115+
- name: Delete win10sdk_latest assets
116+
uses: andreaswilli/delete-release-assets-action@v4.0.0
117+
with:
118+
github_token: ${{ secrets.GITHUB_TOKEN }}
119+
tag: win10sdk_latest
120+
deleteOnlyFromDrafts: false
121+
128122
- name: Create Release and Upload Release Asset
129-
uses: softprops/action-gh-release@v1
123+
uses: softprops/action-gh-release@v2
130124
with:
131125
tag_name: win10sdk_latest
132126
name: Latest Win10 SDK build tools for Windows x86/x64

0 commit comments

Comments
 (0)