Github Action for getting a signed url to access s3-compatible storage
Required endpoint to access s3-compatible storage
Required region of the bucket
Required aws access key id
Required aws secret access key
Required bucket name
Required signed url expiration time in seconds
Required path to the file in the bucket
signed url
Let's assume the post markdown file is located at ./content/post.md
.
name: get-signed-url
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: infraway/s3-signed-url-action@v1
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
bucket: ${{ vars.AWS_BUCKET }}
endpoint: ${{ vars.AWS_ENDPOINT }}
expires: '86400'
file_path: content/post.md