@@ -129,11 +129,50 @@ jobs:
129
129
path : ${{ github.workspace }}/cppcon21.tar.gz
130
130
retention-days : 1
131
131
132
+ build-bazelcon23 :
133
+ runs-on : ubuntu-latest
134
+ steps :
135
+ - name : Checkout
136
+ uses : actions/checkout@v3
137
+ - uses : dorny/paths-filter@v2
138
+ id : changes
139
+ with :
140
+ filters : .github/path-filters.yml
141
+ - name : authenticate to aws
142
+ uses : aws-actions/configure-aws-credentials@v4
143
+ with :
144
+ aws-region : ${{ secrets.AWS_REGION }}
145
+ role-to-assume : ${{ secrets.AWS_ROLE }}
146
+ if : steps.changes.outputs.bazelcon23 == 'true'
147
+ - name : Prepare final artifact
148
+ run : |
149
+ mkdir -p ./dist/bazelcon23/images
150
+ mv ./slides/bazelcon23/redirect.html ./dist/bazelcon23/index.html
151
+ mv ./slides/bazelcon23/slides-bazelcon23-pejman.pdf ./dist/bazelcon23/
152
+ mv ./slides/bazelcon23/images/bazelcon-cover.png ./dist/bazelcon23/images/
153
+ tar -zcf bazelcon23.tar.gz ./dist
154
+ if : steps.changes.outputs.bazelcon23 == 'true'
155
+ - name : push api to aws
156
+ run : aws s3 cp bazelcon23.tar.gz ${{ secrets.AWS_BUCKET }}/
157
+ if : steps.changes.outputs.bazelcon23 == 'true'
158
+ - name : pull api from aws
159
+ run : |
160
+ aws s3 cp ${{ secrets.AWS_BUCKET }}/bazelcon23.tar.gz .
161
+ tar -zxf bazelcon23.tar.gz .
162
+ if : steps.changes.outputs.bazelcon23 == 'false'
163
+ - name : Upload artifact
164
+ uses : actions/upload-artifact@v3
165
+ with :
166
+ name : bazelcon23
167
+ path : ${{ github.workspace }}/bazelcon23.tar.gz
168
+ retention-days : 1
169
+
132
170
bundle :
133
171
runs-on : ubuntu-latest
134
172
needs :
135
173
- build-cppcon21
136
174
- build-cppcon23
175
+ - build-bazelcon23
137
176
steps :
138
177
- name : Checkout
139
178
uses : actions/checkout@v3
@@ -147,10 +186,16 @@ jobs:
147
186
with :
148
187
name : cppcon23
149
188
path : ${{ github.workspace }}
189
+ - name : Download BazelCon23 artifact
190
+ uses : actions/download-artifact@v3
191
+ with :
192
+ name : bazelcon23
193
+ path : ${{ github.workspace }}
150
194
- name : Add redirect page
151
195
run : |
152
196
tar -xf cppcon21.tar.gz
153
197
tar -xf cppcon23.tar.gz
198
+ tar -xf bazelcon23.tar.gz
154
199
mv ./slides/redirect.html ./dist/index.html
155
200
- name : Upload artifact
156
201
uses : actions/upload-pages-artifact@v1
0 commit comments