File tree 1 file changed +23
-4
lines changed
1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,14 @@ jobs:
70
70
# This will also trigger "make dist" that creates the Python packages
71
71
make aws-lambda-layer
72
72
- name : Upload Python Packages
73
- uses : actions/upload-artifact@v3
73
+ uses : actions/upload-artifact@v4
74
74
with :
75
- name : ${{ github.sha }}
75
+ name : artifact-build_lambda_layer
76
76
path : |
77
77
dist/*
78
+ if-no-files-found : ' error'
79
+ # since this artifact will be merged, compression is not necessary
80
+ compression-level : ' 0'
78
81
79
82
docs :
80
83
name : Build SDK API Doc
91
94
make apidocs
92
95
cd docs/_build && zip -r gh-pages ./
93
96
94
- - uses : actions/upload-artifact@v3.1.1
97
+ - uses : actions/upload-artifact@v4
98
+ with :
99
+ name : artifact-docs
100
+ path : |
101
+ docs/_build/gh-pages.zip
102
+ if-no-files-found : ' error'
103
+ # since this artifact will be merged, compression is not necessary
104
+ compression-level : ' 0'
105
+
106
+ merge :
107
+ name : Create Release Artifact
108
+ runs-on : ubuntu-latest
109
+ needs : [build_lambda_layer, docs]
110
+ steps :
111
+ - uses : actions/upload-artifact/merge@v4
95
112
with :
113
+ # Craft expects release assets from github to be a single artifact named after the sha.
96
114
name : ${{ github.sha }}
97
- path : docs/_build/gh-pages.zip
115
+ pattern : artifact-*
116
+ delete-merged : true
You can’t perform that action at this time.
0 commit comments