Skip to content

Commit 9d22251

Browse files
committed
github: upload artifacts on push
Upload the built core archive to an S3 bucket when updating branches in the main repository.
1 parent 18f027a commit 9d22251

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/package_core.yml

+21
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,24 @@ jobs:
151151
fi
152152
fi
153153
done
154+
155+
publish-artifacts:
156+
name: Publish artifacts
157+
runs-on: ubuntu-latest
158+
if: ${{ github.event_name == 'push' && github.repository == 'arduino/ArduinoCore-zephyr' }}
159+
needs:
160+
- package-core
161+
- test-core
162+
steps:
163+
- uses: actions/download-artifact@v4
164+
with:
165+
name: ${{ needs.package-core.outputs.CORE_ARTIFACT }}
166+
167+
- name: Configure AWS credentials
168+
uses: aws-actions/configure-aws-credentials@v4
169+
with:
170+
role-to-assume: ${{ secrets.IAM_ROLE }}
171+
aws-region: ${{ secrets.AWS_REGION }}
172+
173+
- name: Upload artifact
174+
run: aws s3 sync ${{ needs.package-core.outputs.CORE_ARTIFACT }}.tar.bz2 s3://${{ secrets.S3_BUCKET }}

0 commit comments

Comments
 (0)