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
47 changes: 47 additions & 0 deletions .github/workflows/release-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,50 @@ jobs:

# Upload to S3
aws s3 cp latest-version.json s3://${{ secrets.ARTIFACT_BUCKET_NAME }}/manifest/latest-version.json --content-type "application/json"

upload-release-definition-to-s3:
needs:
- get-latest-tag
- upload-pkg-and-dependency-source-code-to-release
- upload-msi-to-release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v5.0.0
with:
role-to-assume: ${{ secrets.TOOLBOX_TRIGGER_ROLE }}
role-session-name: upload-release-definition-to-s3
aws-region: ${{ secrets.TOOLBOX_TRIGGER_REGION }}

- name: Create and upload release definition to S3
run: |
# Extract version without 'v' prefix for filename
VERSION="${{ needs.get-latest-tag.outputs.tag }}"
VERSION_NO_V="${VERSION#v}"

# Create release definition JSON file
cat > "release-def-${VERSION_NO_V}.json" << EOF
{
"tag_name": "${{ needs.get-latest-tag.outputs.tag }}",
"source_s3uri": "s3://finch-installer-private/",
"source_access_role": "arn:aws:iam::090529234398:role/BundlerRole",
"assets": [
{
"name": "Finch-${{ needs.get-latest-tag.outputs.tag }}-aarch64.pkg",
"os": "mac",
"architecture": "aarch64"
},
{
"name": "Finch-${{ needs.get-latest-tag.outputs.tag }}-x86_64.pkg",
"os": "mac",
"architecture": "x86_64"
}
]
}
EOF

# Upload to S3
aws s3 cp "release-def-${VERSION_NO_V}.json" s3://${{ secrets.TOOLBOX_TRIGGER_BUCKET }}/manifest/release-def-${VERSION_NO_V}.json --content-type "application/json"
Loading