-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not allowing to upload a single file, only dir #6
Comments
I do confirm - file upload not working.
|
could I see your workflow file (like |
Ref: shallwefootball/upload-s3-action#6 Signed-off-by: Akos Kitta <[email protected]>
Same issue here. - uses: shallwefootball/s3-upload-action@master
env:
REGION: fr-par
HOST: https://s3.fr-par.scw.cloud
with:
aws_key_id: ${{ secrets.S3_ACCESS_KEY }}
aws_secret_access_key: ${{ secrets.S3_SECRET_KEY }}
aws_bucket: ${{ secrets.S3_BUILDS_BUCKET }}
source_dir: ./Doc.zip |
yep Can you make some directory and put like |
|
Same problem here.
If file uploads are out of scope for the action do you think you can update the readme? |
I ran into this same problem but got around it with just creating a directory and selecting that directory. Oddly enough, it will upload things within the directory but not the directory itself. So the following code - name: Zip folder
run: |
cd ../
tar -czf ${{ env.GITHUB_REF_SLUG }}.tar.gz store/
mkdir artifacts/
mv ${{ env.GITHUB_REF_SLUG }}.tar.gz artifacts/${{ env.GITHUB_REF_SLUG }}.tar.gz
- name: Upload
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: '../artifacts'
destination_dir: 'store' Will actually create |
When I try to upload only a single file through
source_dir
variable - I get the following errorError: ENOTDIR: not a directory
, while in README.md it's described as(Required) The local directory (or file) you wish to upload to S3.
The text was updated successfully, but these errors were encountered: