Skip to content

Commit 811b0b7

Browse files
authored
ci: Upload latest Finch tag to s3 on release (runfinch#1436)
Signed-off-by: Cartrius Phipps <[email protected]>
1 parent 11f8c4d commit 811b0b7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release-automation.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,32 @@ jobs:
4949
secrets: inherit
5050
with:
5151
ref_name: ${{ needs.get-latest-tag.outputs.tag }}
52+
53+
update-latest-version-in-s3:
54+
needs:
55+
- get-latest-tag
56+
- upload-pkg-and-dependency-source-code-to-release
57+
- upload-msi-to-release
58+
runs-on: ubuntu-latest
59+
permissions:
60+
id-token: write
61+
contents: read
62+
steps:
63+
- name: Configure AWS credentials
64+
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
65+
with:
66+
role-to-assume: ${{ secrets.ROLE }}
67+
role-session-name: update-latest-version-in-s3
68+
aws-region: ${{ secrets.REGION }}
69+
70+
- name: Update latest version in S3
71+
run: |
72+
# Create latest-version.json with the latest Finch release version to track updates
73+
cat > latest-version.json << EOF
74+
{
75+
"latest_version": "${{ needs.get-latest-tag.outputs.tag }}"
76+
}
77+
EOF
78+
79+
# Upload to S3
80+
aws s3 cp latest-version.json s3://${{ secrets.ARTIFACT_BUCKET_NAME }}/manifest/latest-version.json --content-type "application/json"

0 commit comments

Comments
 (0)