Skip to content

Commit 062fc9d

Browse files
authored
updated the action to modify the release build assets (#6669)
1 parent fde8630 commit 062fc9d

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

.github/workflows/build-branch.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -299,32 +299,6 @@ jobs:
299299
buildx-platforms: ${{ needs.branch_build_setup.outputs.gh_buildx_platforms }}
300300
buildx-endpoint: ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
301301

302-
attach_assets_to_build:
303-
if: ${{ needs.branch_build_setup.outputs.build_type == 'Release' }}
304-
name: Attach Assets to Release
305-
runs-on: ubuntu-22.04
306-
needs: [branch_build_setup]
307-
steps:
308-
- name: Checkout
309-
uses: actions/checkout@v4
310-
311-
- name: Update Assets
312-
run: |
313-
cp ./deploy/selfhost/install.sh deploy/selfhost/setup.sh
314-
315-
- name: Attach Assets
316-
id: attach_assets
317-
uses: actions/upload-artifact@v4
318-
with:
319-
name: selfhost-assets
320-
retention-days: 2
321-
path: |
322-
${{ github.workspace }}/deploy/selfhost/setup.sh
323-
${{ github.workspace }}/deploy/selfhost/swarm.sh
324-
${{ github.workspace }}/deploy/selfhost/restore.sh
325-
${{ github.workspace }}/deploy/selfhost/docker-compose.yml
326-
${{ github.workspace }}/deploy/selfhost/variables.env
327-
328302
publish_release:
329303
if: ${{ needs.branch_build_setup.outputs.build_type == 'Release' }}
330304
name: Build Release
@@ -338,7 +312,6 @@ jobs:
338312
branch_build_push_live,
339313
branch_build_push_apiserver,
340314
branch_build_push_proxy,
341-
attach_assets_to_build,
342315
]
343316
env:
344317
REL_VERSION: ${{ needs.branch_build_setup.outputs.release_version }}
@@ -349,6 +322,8 @@ jobs:
349322
- name: Update Assets
350323
run: |
351324
cp ./deploy/selfhost/install.sh deploy/selfhost/setup.sh
325+
sed -i 's/${APP_RELEASE:-stable}/${APP_RELEASE:-'${REL_VERSION}'}/g' deploy/selfhost/docker-compose.yml
326+
sed -i 's/APP_RELEASE=stable/APP_RELEASE='${REL_VERSION}'/g' deploy/selfhost/variables.env
352327
353328
- name: Create Release
354329
id: create_release

0 commit comments

Comments
 (0)