Skip to content

Commit 2176b4d

Browse files
committed
add ci
1 parent 7be41ec commit 2176b4d

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/s3-upload.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload to S3
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
upload-to-s3:
11+
runs-on: ubuntu-latest
12+
env:
13+
S3_BUCKET_PATH: s3://cdn.explorium.ai/integrations/
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Configure AWS credentials
19+
uses: aws-actions/configure-aws-credentials@v4
20+
with:
21+
aws-region: us-east-1
22+
role-to-assume: ${{ secrets.PROD_GITHUB_ROLE }}
23+
24+
- name: Upload repository to S3
25+
run: |
26+
aws s3 sync . ${{ env.S3_BUCKET_PATH }} \
27+
--exclude ".git/*" \
28+
--exclude ".github/*" \
29+
--exclude ".idea/*" \
30+
--delete

0 commit comments

Comments
 (0)