File tree Expand file tree Collapse file tree 5 files changed +44
-65
lines changed Expand file tree Collapse file tree 5 files changed +44
-65
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,14 @@ jobs:
46
46
run : |
47
47
echo "SUB_PATH=dev-builds/${{ steps.date.outputs.date }}/${{ github.run_id }}" >> $GITHUB_ENV
48
48
49
- - name : Set sub path for pre-release builds
49
+ - name : Set sub path for pre-release builds and copy to upgrades folder
50
50
if : inputs.pre-release
51
51
run : |
52
52
APP_VERSION=$(jq -r '.version' redisinsight/package.json)
53
53
echo "SUB_PATH=pre-release/${APP_VERSION}" >> $GITHUB_ENV
54
54
55
+ aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/upgrades --recursive
56
+
55
57
- name : Upload builds to s3 bucket
56
58
run : |
57
59
aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/${SUB_PATH} --recursive
63
65
# Remove artifacts from github actions
64
66
remove-artifacts :
65
67
name : Remove artifacts
66
- uses : ./.github/workflows/remove-artifacts.yml
67
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
+ });
Original file line number Diff line number Diff line change 44
44
# Remove artifacts from github actions
45
45
remove-artifacts :
46
46
name : Remove artifacts
47
- uses : ./.github/workflows/remove-artifacts.yml
48
47
needs : ' release-private'
48
+ runs-on : ubuntu-latest
49
+
50
+ steps :
51
+ - name : Merge artifacts by pattern
52
+ id : merge-artifacts
53
+ uses : actions/upload-artifact/merge@v4
54
+ with :
55
+ name : remove-artifacts
56
+ pattern : ' *'
57
+ delete-merged : true
58
+
59
+ - name : Delete merged artifact
60
+ uses : actions/github-script@v7
61
+ with :
62
+ script : |
63
+ github.rest.actions.deleteArtifact({
64
+ owner: context.repo.owner,
65
+ repo: context.repo.repo,
66
+ artifact_id: ${{ steps.merge-artifacts.outputs.artifact-id }}
67
+ });
49
68
50
69
release-public :
51
70
name : Release s3 public
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ jobs:
101
101
ARCH=x64 ./.github/redisstack/dmg.repack.sh
102
102
ARCH=arm64 ./.github/redisstack/dmg.repack.sh
103
103
104
- - name : Upload x64 packages
104
+ - name : Upload macos packages
105
105
uses : actions/upload-artifact@v4
106
106
with :
107
107
name : macos-builds
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments