Skip to content

Commit 3fe63d3

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 157e5c6 commit 3fe63d3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: .github/workflows/package_core.yml

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

0 commit comments

Comments
 (0)