Skip to content

Commit 5a45482

Browse files
authored
Update cicd.yml
1 parent 6b5716e commit 5a45482

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

.github/workflows/cicd.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ jobs:
146146
tag-release:
147147
name: Tag / Release
148148
runs-on: ubuntu-latest
149+
needs: [deploy-linux-production, deploy-win32-production]
149150

150151
steps:
151152
- name: tag
@@ -162,9 +163,10 @@ jobs:
162163
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
163164
body: ${{ steps.tag_version.outputs.changelog }}
164165

165-
release-artifacts:
166-
name: artifacts
166+
release-artifacts-linux:
167+
name: Linux Release
167168
runs-on: ubuntu-latest
169+
needs: [tag-release]
168170

169171
steps:
170172
- name: Download
@@ -177,12 +179,34 @@ jobs:
177179

178180
- name: Release
179181
uses: ncipollo/release-action@v1
180-
if: github.ref == 'refs/heads/master'
181182
with:
182183
name: "Release ${{ steps.tag.outputs.new_tag }}"
183184
artifactContentType: application/zip
184185
artifacts: "linux.zip"
185186
body: "Latest packaged client and server"
186187
token: ${{ secrets.GITHUB_TOKEN }}
187188
tag: ${{ steps.tag.outputs.new_tag }}
188-
189+
190+
release-artifacts-win32:
191+
name: Win32 Release
192+
runs-on: windows-latest
193+
needs: [tag-release]
194+
195+
steps:
196+
- name: Download
197+
uses: actions/download-artifact@v2
198+
with:
199+
name: win32-hello-world
200+
201+
- name: Archive
202+
run: Compress-Archive -Path "$env:GITHUB_WORKSPACE\CMakeHelloWorld.exe" -DestinationPath "$env:GITHUB_WORKSPACE\win32.zip"
203+
204+
- name: Release
205+
uses: ncipollo/release-action@v1
206+
with:
207+
name: "Release ${{ steps.tag.outputs.new_tag }}"
208+
artifactContentType: application/zip
209+
artifacts: "win32.zip"
210+
body: "Latest packaged client and server"
211+
token: ${{ secrets.GITHUB_TOKEN }}
212+
tag: ${{ steps.tag.outputs.new_tag }}

0 commit comments

Comments
 (0)