Skip to content

Commit

Permalink
s3 bucket upload edit 7
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelfarsi committed Jul 10, 2024
1 parent 7d1e0f4 commit f6f8bf6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/package-manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@ jobs:

- name: Prepare Directory Structure
run: |
mkdir -p ${{ github.workspace }}/bin
mv ${{ github.workspace }}/output.json ${{ github.workspace }}/bin/output.json
- name: Sync bin Directory to S3 Bucket
run:
version=$(jq -r '.[0].Version' ${{ github.workspace }}/output.json | cut -d'-' -f1)
base_dir="${{ github.workspace }}/CE-Candidate-${version}"
mkdir -p "$base_dir"
jq -r '.[] | .Edge_Cast_path' ${{ github.workspace }}/output.json | while read path; do
full_path="$base_dir/$(echo $path | sed 's#releases/CE-Candidate-[^/]*##')"
mkdir -p "$(dirname "$full_path")"
touch "$full_path"
done
- name: Sync Directory to S3 Bucket
run: aws s3 sync $base_dir s3://ebelfarsi-bucket/

aws s3 sync ${{ github.workspace }}/bin s3://ebelfarsi-bucket/

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

0 comments on commit f6f8bf6

Please sign in to comment.