forked from hpcc-systems/HPCC-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,11 +52,18 @@ jobs: | |
|
||
- name: Prepare Directory Structure | ||
run: | | ||
mkdir -p ${{ github.workspace }}/bin | ||
mv ${{ github.workspace }}/output.json ${{ github.workspace }}/bin/output.json | ||
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/ | ||
|
||
- name: Sync bin Directory to S3 Bucket | ||
run: aws s3 sync ${{ github.workspace }}/bin s3://ebelfarsi-bucket/ | ||
|
||
- name: Upload output.json to GitHub Release | ||
uses: ncipollo/[email protected] | ||
|