Skip to content

Commit ebb281d

Browse files
committed
try fixing s3 upload
1 parent a31c1a4 commit ebb281d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/upload.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ jobs:
1818
bundler-cache: true
1919

2020
- name: Build
21-
run: |
22-
rake
23-
ssc_path=$(ls build/*.ssc | head -n 1)
24-
echo "ssc_path=$ssc_path" >> $GITHUB_ENV
25-
echo "ssc_filename=$(basename "$ssc_path")" >> $GITHUB_ENV
21+
run: rake
2622

2723
- name: Upload
2824
env:
2925
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
3026
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
3127
AWS_DEFAULT_REGION: auto
3228
run: |
33-
aws s3 cp "$ssc_path" "s3://${{ secrets.S3_BUCKET_NAME }}/chart/$ssc_filename" \
34-
--endpoint-url "${{ secrets.S3_ENDPOINT }}"
29+
filename="$(yq --raw-output '.project_name' .sscharter.yml).ssc"
30+
build_dir="$(yq --raw-output '.build_dir' .sscharter.yml)"
31+
aws s3 cp "$build_dir/$filename" "s3://${{ secrets.S3_BUCKET_NAME }}/chart/$filename" \
32+
--endpoint-url "${{ secrets.S3_ENDPOINT }}" --acl private

0 commit comments

Comments
 (0)