File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 49
49
secrets : inherit
50
50
with :
51
51
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"
You can’t perform that action at this time.
0 commit comments