From 735542dbdceddaedf12ffcac7c9747866aae3c0f Mon Sep 17 00:00:00 2001 From: Allen Byrne <50328838+byrnHDF@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:52:08 -0500 Subject: [PATCH] Upload extras add local option (#308) --- .github/workflows/publish-branch.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-branch.yml b/.github/workflows/publish-branch.yml index 9dc83a97..6179ee8e 100644 --- a/.github/workflows/publish-branch.yml +++ b/.github/workflows/publish-branch.yml @@ -4,6 +4,10 @@ name: hdfview publish files in HDFVIEW from branch to S3 on: workflow_dispatch: inputs: + local_dir: + description: 'HDFView local directory' + type: string + required: true target_dir: description: 'HDFView target bucket directory' type: string @@ -36,5 +40,5 @@ jobs: - name: Sync dir to S3 bucket run: | - aws s3 sync ./HDFVIEW s3://${{ secrets.AWS_S3_BUCKET }}/${{ vars.TARGET_PATH }}/${{ inputs.target_dir }} + aws s3 sync ./HDFVIEW/${{ inputs.local_dir }} s3://${{ secrets.AWS_S3_BUCKET }}/${{ vars.TARGET_PATH }}/${{ inputs.target_dir }}