{"id":16744274,"url":"https://github.com/raulanatol/aws-s3-js-action","last_synced_at":"2025-04-10T13:42:05.733Z","repository":{"id":42693889,"uuid":"261844543","full_name":"raulanatol/aws-s3-js-action","owner":"raulanatol","description":"Github Action to sync AWS S3 files","archived":false,"fork":false,"pushed_at":"2024-07-02T14:49:19.000Z","size":4829,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:21:34.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raulanatol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-06T18:23:08.000Z","updated_at":"2024-07-02T14:49:20.000Z","dependencies_parsed_at":"2023-01-05T05:00:36.695Z","dependency_job_id":"f737279d-9468-457b-aefd-114bad420a7e","html_url":"https://github.com/raulanatol/aws-s3-js-action","commit_stats":{"total_commits":49,"total_committers":3,"mean_commits":"16.333333333333332","dds":0.2857142857142857,"last_synced_commit":"f41f26af461b2478f70b8f0d283d66bf2babe78d"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Faws-s3-js-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Faws-s3-js-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Faws-s3-js-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Faws-s3-js-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raulanatol","download_url":"https://codeload.github.com/raulanatol/aws-s3-js-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248226133,"owners_count":21068138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T01:42:53.928Z","updated_at":"2025-04-10T13:42:05.714Z","avatar_url":"https://github.com/raulanatol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003eAWS S3 Javascript action\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp\u003eThis action using the [AWS-SDK for JavaScript in Node.js](https://aws.amazon.com/sdk-for-node-js/) to sync a directory from your repository to a S3 bucket.\u003c/p\u003e\n\nIs the same as [aws-s3-docker-action](https://github.com/raulanatol/aws-s3-docker-action) because sometimes is not\npossible to use a docker container in your actions jobs.\n\n`Container action is only supported on Linux`\n\n![Container action is only supported on Linux](docs/container-error.png)\n\n---\n\n# Inputs\n\n| Key                                | Description                                                                                                      | Required | Type       |\n|------------------------------------|------------------------------------------------------------------------------------------------------------------|----------|------------|\n| `AWS_ACCESS_KEY_ID`                | The  AWS Access Key                                                                                              | **TRUE** | **SECRET** |\n| `AWS_SECRET_ACCESS_KEY`            | The AWS secret access key                                                                                        | **TRUE** | **SECRET** |\n| `AWS_REGION`                       | The region of the bucket                                                                                         | **TRUE** |            |\n| `AWS_BUCKET_NAME`                  | The bucket to sync                                                                                               | **TRUE** | **SECRET** |\n| `SOURCE`                           | Your local file path that you wish to upload to S3                                                               | **TRUE** |            |\n| `TARGET`                           | The destination of the source after sync in S3                                                                   | **TRUE** |            |\n| `WITH_DELETE`                      | If you want to use the [*--delete* flag](https://docs.aws.amazon.com/cli/latest/reference/s3/sync.html#synopsis) |          |            | \n| `WITH_CLOUDFRONT_INVALIDATION`     | If you want to use cloudfront invalidation                                                                       |          |            |\n| `AWS_CLOUDFRONT_DISTRIBUTION_ID`   | The cloudfront distributions id (use only if you need invalidation)                                              |          | **SECRET** |  \n| `AWS_CLOUDFRONT_INVALIDATION_PATH` | Path to the cloudfront invalidation (use only if you need invalidation)                                          |          |            |  \n\n# Example usage\n\nCreate the file `workflow.yml` in `.github/workflows` folder.\n\n```\nname: S3 Sync\non: [push]\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Sync to S3\n        uses: raulanatol/aws-s3-js-action@v1.0.0\n        with:\n          AWS_REGION: \n          AWS_BUCKET_NAME: \n          SOURCE: \n          TARGET: \n          WITH_DELETE: \n          WITH_CLOUD_FRONT_INVALIDATION: \n          AWS_CLOUDFRONT_DISTRIBUTION_ID: \n          AWS_CLOUDFRONT_INVALIDATION_PATH:\n        env:\n          AWS_ACCESS_KEY_ID:\n          AWS_SECRET_ACCESS_KEY:\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulanatol%2Faws-s3-js-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraulanatol%2Faws-s3-js-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulanatol%2Faws-s3-js-action/lists"}