{"id":15364704,"url":"https://github.com/bencode/oss-upload","last_synced_at":"2025-04-15T07:31:25.712Z","repository":{"id":32896254,"uuid":"145367301","full_name":"bencode/oss-upload","owner":"bencode","description":"upload local static files to ali oss.","archived":false,"fork":false,"pushed_at":"2024-02-27T04:58:30.000Z","size":688,"stargazers_count":4,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T05:44:22.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bencode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-20T04:46:11.000Z","updated_at":"2024-02-07T07:43:04.000Z","dependencies_parsed_at":"2024-02-27T05:48:07.291Z","dependency_job_id":null,"html_url":"https://github.com/bencode/oss-upload","commit_stats":{"total_commits":46,"total_committers":4,"mean_commits":11.5,"dds":"0.32608695652173914","last_synced_commit":"830de5f48fd42ef24af73aa0bfd6f4ae1ea7ac4b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencode%2Foss-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencode%2Foss-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencode%2Foss-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencode%2Foss-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bencode","download_url":"https://codeload.github.com/bencode/oss-upload/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249026798,"owners_count":21200507,"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-01T13:13:05.978Z","updated_at":"2025-04-15T07:31:25.395Z","avatar_url":"https://github.com/bencode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oss-upload\n\n## Usage\n\n### 1. Installation\n\nTo install, run the following command:\n\n```shell\nnpm install --save-dev ali-oss-upload-cli\n```\n\n### 2. Update the .env File\n\nConfigure your environment variables as follows:\n\n```\nOSS_REGION=oss-cn-hangzhou\nOSS_BUCKET=lesscap\nOSS_ACCESS_KEY_ID=xxx\nOSS_ACCESS_KEY_SECRET=xxx\n```\n\n**Important: Ensure the .env file is added to your .gitignore to protect your credentials.**\n\n### 3. Upload Files\n\nTo upload the dist directory to the remote /static directory, use:\n\n```\noss-upload dist -o /static\n```\n\nTo upload to the bucket's root directory:\n\n```\noss-upload dist -o /\n```\n\nTo filter files using glob patterns (e.g., only .js files):\n\n```\noss-upload dist -o /static --filter=**/*.js\n```\n\nFor CI environments, you can specify all parameters directly in the command line for convenience:\n\n```\noss-upload dist -o /static --region=oss-cn-hangzhou --bucket=lesscap --key=xxx --secret=xxx\n```\n\nTo specify a different .env file:\n\n```\noss-upload dist -o /static --envfile=.env.test\n```\n\n### 4. Display Help\n\nTo view all available commands and options, run:\n\n```\noss-upload -h\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencode%2Foss-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbencode%2Foss-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencode%2Foss-upload/lists"}