Skip to content

Commit 7c90be2

Browse files
committed
ci: create GitHub Release for frontend as well
Signed-off-by: CrazyMax <[email protected]>
1 parent de03274 commit 7c90be2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/frontend.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
outputs:
4242
typ: ${{ steps.prep.outputs.typ }}
4343
push: ${{ steps.prep.outputs.push }}
44+
tag: ${{ steps.prep.outputs.tag }}
4445
tags: ${{ steps.prep.outputs.tags }}
4546
steps:
4647
-
@@ -59,6 +60,7 @@ jobs:
5960
fi
6061
echo "typ=${TYP}" >>${GITHUB_OUTPUT}
6162
echo "push=${PUSH}" >>${GITHUB_OUTPUT}
63+
echo "tag=${TAG}" >>${GITHUB_OUTPUT}
6264
if [ "${TYP}" = "master" ]; then
6365
echo "tags=$(jq -cn --arg tag "$TAG" '[$tag, "labs"]')" >>${GITHUB_OUTPUT}
6466
else
@@ -114,3 +116,20 @@ jobs:
114116
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
115117
CACHE_FROM: type=gha,scope=${{ env.CACHE_SCOPE }}
116118
CACHE_TO: type=gha,scope=${{ env.CACHE_SCOPE }}
119+
120+
release:
121+
runs-on: ubuntu-20.04
122+
if: startsWith(github.ref, 'refs/tags/dockerfile')
123+
needs:
124+
- prepare
125+
- test
126+
- image
127+
steps:
128+
-
129+
name: GitHub Release
130+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
131+
env:
132+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133+
with:
134+
draft: true
135+
name: ${{ needs.prepare.outputs.tag }}

0 commit comments

Comments
 (0)