Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,41 @@ jobs:
AWS_REGION: us-east-1
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID_STAGE}}

upload-build-artifacts:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Check out
uses: actions/checkout@v5
with:
persist-credentials: 'false'

- name: Setup Node & NPM
uses: ./.github/actions/setup-node-npm

- name: Configure AWS for DEV
uses: ./.github/actions/configure-aws
with:
aws_role_to_assume: 'arn:aws:iam::${{secrets.AWS_ACCOUNT_ID_DEV}}:role/spacecat-role-github-actions'

- name: Create Build Artifacts
run: npm run build
env:
AWS_REGION: us-east-1
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID_DEV}}

- name: Copy Build Artifact
run: cp dist/spacecat-services/task-processor@*.zip spacecat-services--task-processor-latest.zip
env:
AWS_REGION: us-east-1
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID_DEV}}

- name: Upload Build Artifact
run: aws s3 cp spacecat-services--task-processor-latest.zip s3://spacecat-artifacts-dev/spacecat-services--task-processor-latest.zip
env:
AWS_REGION: us-east-1
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID_DEV}}

branch-deploy:
runs-on: ubuntu-latest
Expand Down