@@ -25,64 +25,35 @@ jobs:
25
25
id : date
26
26
uses : ./.github/actions/get-current-date
27
27
28
- - name : Merge builds by pattern
29
- id : merge-builds
30
- uses : actions/upload-artifact/merge@v4
31
- with :
32
- name : ' all-builds'
33
- pattern : ' *-builds'
34
- delete-merged : true
35
-
36
28
- name : Download builds
37
29
uses : actions/download-artifact@v4
38
30
with :
39
- name : ' all -builds'
31
+ pattern : ' * -builds'
40
32
path : release
33
+ merge-multiple : true
41
34
42
35
- run : ls -R ./release
43
36
44
- - name : Set sub path for dev builds
37
+ - name : Upload builds to s3 bucket dev sub folder
45
38
if : ${{ !inputs.pre-release }}
46
39
run : |
47
- echo "SUB_PATH=dev-builds/${{ steps.date.outputs.date }}/${{ github.run_id }}" >> $GITHUB_ENV
40
+ SUB_PATH="dev-builds/${{ steps.date.outputs.date }}/${{ github.run_id }}"
41
+ echo "SUB_PATH=${SUB_PATH}" >> $GITHUB_ENV
48
42
49
- - name : Set sub path for pre-release builds and copy to upgrades folder
43
+ aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/${SUB_PATH} --recursive
44
+
45
+ - name : Upload builds to s3 bucket pre-releasea sub folder
50
46
if : inputs.pre-release
51
47
run : |
52
48
APP_VERSION=$(jq -r '.version' redisinsight/package.json)
53
- echo " SUB_PATH=pre-release/${APP_VERSION}" >> $GITHUB_ENV
49
+ SUB_PATH=" pre-release/${APP_VERSION}"
54
50
55
- aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/upgrades --recursive
51
+ echo "SUB_PATH=${SUB_PATH}" >> $GITHUB_ENV
56
52
57
- - name : Upload builds to s3 bucket
58
- run : |
59
- aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/${SUB_PATH} --recursive
53
+ aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/upgrades --recursive
54
+ aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/pre-release/${APP_VERSION} --recursive
60
55
61
56
- name : Generate job summary
62
57
run : |
63
58
node ./.github/generate-build-summary.js
64
59
65
- # Remove artifacts from github actions
66
- remove-artifacts :
67
- name : Remove artifacts
68
- needs : ' s3'
69
- runs-on : ubuntu-latest
70
-
71
- steps :
72
- - name : Merge artifacts by pattern
73
- id : merge-artifacts
74
- uses : actions/upload-artifact/merge@v4
75
- with :
76
- name : remove-artifacts
77
- pattern : ' *'
78
- delete-merged : true
79
-
80
- - name : Delete merged artifact
81
- uses : actions/github-script@v7
82
- with :
83
- script : |
84
- github.rest.actions.deleteArtifact({
85
- owner: context.repo.owner,
86
- repo: context.repo.repo,
87
- artifact_id: ${{ steps.merge-artifacts.outputs.artifact-id }}
88
- });
0 commit comments