Skip to content

Commit de03274

Browse files
committed
ci: make release depends on image job
Signed-off-by: CrazyMax <[email protected]>
1 parent 5c57879 commit de03274

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

.github/workflows/buildkit.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -126,34 +126,6 @@ jobs:
126126
path: ./release-out/*
127127
if-no-files-found: error
128128

129-
binaries:
130-
runs-on: ubuntu-20.04
131-
needs:
132-
- prepare
133-
- cross
134-
- test
135-
steps:
136-
-
137-
name: Download artifacts
138-
uses: actions/download-artifact@v3
139-
with:
140-
name: buildkit
141-
path: ./release-out/*
142-
-
143-
name: List artifacts
144-
run: |
145-
tree -nh ./release-out/
146-
-
147-
name: GitHub Release
148-
if: startsWith(github.ref, 'refs/tags/v')
149-
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
150-
env:
151-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152-
with:
153-
draft: true
154-
files: ./release-out/*
155-
name: ${{ needs.prepare.outputs.tag }}
156-
157129
image:
158130
runs-on: ubuntu-20.04
159131
needs:
@@ -198,3 +170,32 @@ jobs:
198170
TARGET: ${{ matrix.target-stage }}
199171
CACHE_FROM: type=gha,scope=image${{ matrix.target-stage }}
200172
CACHE_TO: type=gha,scope=image${{ matrix.target-stage }}
173+
174+
release:
175+
runs-on: ubuntu-20.04
176+
needs:
177+
- prepare
178+
- test
179+
- cross
180+
- image
181+
steps:
182+
-
183+
name: Download artifacts
184+
uses: actions/download-artifact@v3
185+
with:
186+
name: buildkit
187+
path: ./release-out/*
188+
-
189+
name: List artifacts
190+
run: |
191+
tree -nh ./release-out/
192+
-
193+
name: GitHub Release
194+
if: startsWith(github.ref, 'refs/tags/v')
195+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
196+
env:
197+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
198+
with:
199+
draft: true
200+
files: ./release-out/*
201+
name: ${{ needs.prepare.outputs.tag }}

0 commit comments

Comments
 (0)