Skip to content

Commit

Permalink
q
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelfarsi committed Jul 16, 2024
1 parent b94c283 commit f5f3ac4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/package-manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
run: |
output_json_path="${{ github.workspace }}/output.json"
# Ensure the output JSON file exists
if [ ! -f "$output_json_path" ]; then
echo "Error: output.json not found."
exit 1
fi
# Extract version number from the first entry
version=$(jq -r '.[0].Version' "$output_json_path")
base_dir="${{ github.workspace }}/releases/CE-Candidate-${version}"
Expand All @@ -79,7 +85,8 @@ jobs:
# Construct full path for the asset based on JSON
full_path="${base_dir}/${edge_cast_path}"
mkdir -p "$(dirname "$full_path")"
# Assuming asset files are directly under build-assets and match the names exactly as needed
# Check if the asset file exists and copy it to the designated path
if [ -f "${{ github.workspace }}/build-assets/${asset_name}" ]; then
cp "${{ github.workspace }}/build-assets/${asset_name}" "$full_path"
else
Expand All @@ -90,9 +97,9 @@ jobs:
- name: Sync Directory to S3 Bucket
shell: bash
run: |
# Sync the newly created directory structure with the S3 bucket
aws s3 sync "$base_dir" s3://ebelfarsi-bucket/releases/CE-Candidate-${version}


- name: Upload output.json to GitHub Release
uses: ncipollo/[email protected]
Expand Down

0 comments on commit f5f3ac4

Please sign in to comment.