Skip to content

Commit 93b82d9

Browse files
committed
github: upload artifacts
Upload the built core archive to an S3 bucket.
1 parent 157e5c6 commit 93b82d9

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+
needs:
156+
- package-core
157+
- test-core
158+
steps:
159+
- uses: actions/download-artifact@v4
160+
with:
161+
name: ${{ needs.package-core.outputs.CORE_ARTIFACT }}
162+
163+
- name: Configure AWS credentials
164+
uses: aws-actions/configure-aws-credentials@v4
165+
with:
166+
role-to-assume: ${{ secrets.IAM_ROLE }}
167+
role-session-name: "github_${{ env.PROJECT_NAME }}"
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)