{"id":21215831,"url":"https://github.com/betahuhn/do-spaces-action","last_synced_at":"2025-08-17T14:32:55.130Z","repository":{"id":37050652,"uuid":"313397866","full_name":"BetaHuhn/do-spaces-action","owner":"BetaHuhn","description":"📦Upload directories/files to DigitalOcean Spaces via GitHub Actions. Supports package/library versioning.","archived":false,"fork":false,"pushed_at":"2024-06-07T08:58:48.000Z","size":4312,"stargazers_count":43,"open_issues_count":7,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-27T00:36:44.119Z","etag":null,"topics":["actions","cdn","digitalocean","digitalocean-spaces","github","spaces"],"latest_commit_sha":null,"homepage":"https://mxis.ch","language":"JavaScript","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/BetaHuhn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"ko_fi":"betahuhn","github":"betahuhn"}},"created_at":"2020-11-16T18:53:24.000Z","updated_at":"2024-12-26T04:02:37.000Z","dependencies_parsed_at":"2024-02-12T02:29:48.912Z","dependency_job_id":"a9a5daf6-5add-4d5f-80fd-59825df9e568","html_url":"https://github.com/BetaHuhn/do-spaces-action","commit_stats":{"total_commits":1186,"total_committers":5,"mean_commits":237.2,"dds":0.3111298482293423,"last_synced_commit":"61135fd2b812cad20e42bfc8f9df34333a21fd57"},"previous_names":[],"tags_count":169,"template":false,"template_full_name":null,"purl":"pkg:github/BetaHuhn/do-spaces-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaHuhn%2Fdo-spaces-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaHuhn%2Fdo-spaces-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaHuhn%2Fdo-spaces-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaHuhn%2Fdo-spaces-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BetaHuhn","download_url":"https://codeload.github.com/BetaHuhn/do-spaces-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaHuhn%2Fdo-spaces-action/sbom","scorecard":{"id":21474,"data":{"date":"2025-08-11","repo":{"name":"github.com/BetaHuhn/do-spaces-action","commit":"61135fd2b812cad20e42bfc8f9df34333a21fd57"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dependabot.yml:1","Warn: no topLevel permission defined: .github/workflows/latest-tag.yml:1","Warn: no topLevel permission defined: .github/workflows/node.yml:1","Warn: no topLevel permission defined: .github/workflows/release-scheduler.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependabot.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/dependabot.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/latest-tag.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/latest-tag.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/node.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/node.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/node.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/node.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/node.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/node.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-scheduler.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release-scheduler.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/BetaHuhn/do-spaces-action/stale.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned","Info:   4 out of   4 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T16:52:28.459Z","repository_id":37050652,"created_at":"2025-08-14T16:52:28.459Z","updated_at":"2025-08-14T16:52:28.459Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270859254,"owners_count":24658175,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["actions","cdn","digitalocean","digitalocean-spaces","github","spaces"],"created_at":"2024-11-20T21:45:39.902Z","updated_at":"2025-08-17T14:32:54.154Z","avatar_url":"https://github.com/BetaHuhn.png","language":"JavaScript","funding_links":["https://ko-fi.com/betahuhn","https://github.com/sponsors/betahuhn","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=394RTSBEEEFEE","https://ko-fi.com/F1F81S2RK"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \n# DigitalOcean Spaces Action\n\n[![Build](https://github.com/BetaHuhn/do-spaces-action/workflows/Build/badge.svg)](https://github.com/BetaHuhn/do-spaces-action/actions?query=workflow%3ABuild) [![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/BetaHuhn/do-spaces-action/blob/master/LICENSE) ![David](https://img.shields.io/david/betahuhn/do-spaces-action)\n\nUpload directories/files to DigitalOcean Spaces via GitHub Actions.\n\n\u003c/div\u003e\n\n## 👋 Introduction\n\nUse [do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) to deploy a file or directory to your DigitalOcean Space with GitHub Actions. This can be used to host your static site, or as an self-hosted alternative to something like JSDelivr for serving your JS files/library via a CDN. [do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) can also automatically grab the version number from the package.json and use it to host multiple versions at once (more info [below](#versioning)).\n\n## ⭐ Features\n\n- Upload a [single file](#single-file-upload) or [whole directories](#basic-example)\n- Specify [output directory](#output-directory) on your Space\n- Automatic [versioning](#versioning) of your uploads\n- Use your [CDN endpoint](#cdn-domain) (custom domain)\n- Integrates with [GitHub deployments](#create-deployment-on-github)\n\n## 📚 Usage\n\nCreate a `.yml` file in your `.github/workflows` folder (you can find more info about the structure in the [GitHub Docs](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions)):\n\n**.github/workflows/upload.yml**\n\n```yml\nname: Upload to DO Spaces\non:\n  push:\n    branches:\n      - main\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repository\n        uses: actions/checkout@master\n      - uses: BetaHuhn/do-spaces-action@v2\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: src\n```\n\nMore info on how to specify what files to upload where [below](#%EF%B8%8F-action-inputs).\n\n### Action Versioning\n\nTo always use the latest version of the action add the `latest` tag to the action name like this:\n\n```yml\nuses: BetaHuhn/do-spaces-action@latest\n```\n\nIf you want to make sure that your workflow doesn't suddenly break when a new major version is released, use the `v2` tag instead (recommended usage):\n\n```yml\nuses: BetaHuhn/do-spaces-action@v2\n```\n\nWith the `v2` tag you will always get the latest non-breaking version which will include potential bug fixes in the future. If you use a specific version, make sure to regularly check if a new version is available, or enable Dependabot.\n\n## ⚙️ Action Inputs\n\nHere are all the inputs [do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) takes:\n\n| Key | Value | Required | Default |\n| ------------- | ------------- | ------------- | ------------- |\n| `access_key` | Your DigitalOcean access key - [more info](#authentication) | **Yes** | N/A |\n| `secret_key` | Your DigitalOcean secret key - [more info](#authentication) | **Yes** | N/A |\n| `space_name` | The name of your DigitalOcean Space | **Yes** | N/A |\n| `space_region` | The region of your DigitalOcean Space | **Yes** | N/A |\n| `source` | Path to the source file or folder (what you want to upload) - [more info](#source) | **Yes** | N/A |\n| `out_dir` | Path to the output directory in your Space (where you want to upload to) - [more info](#output-directory) | **No** | `/` |\n| `versioning` | Enable versioning (either set it to true or specify path to package.json) - [more info](#versioning) | **No** | `false` |\n| `cdn_domain` | Custom domain pointing to your CDN endpoint - [more info](#cdn-domain) | **No** | N/A |\n| `permission` | Access permissions of the uploaded files - [more info](#file-permissions) | **No** | `public-read` |\n\n### Authentication\n\nIn order to access your DigitalOcean Space, you have to specify a few required values. The `access_key` and `secret_key` can be generated on your DigitalOcean [Account Page](https://cloud.digitalocean.com/account/api/tokens). The `space_name` and `space_region` are different based on your created Space.\n\nIt is recommended to set them as [Repository Secrets](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository).\n\n### Source\n\nThe `source` input can either point to a single file or to a whole directory which should be uploaded. The path is relative to the root of your repository.\n\n[See example](#single-file-upload)\n\n### Output directory\n\nBy default [do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) will upload all files to the root of your Space. You can specify a different output directory with the `out_dir` input.\n\n[See example](#custom-output-path)\n\n### Versioning\n\n[do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) also supports versioning and can detect the current version from your `package.json` and then upload the file/s to a folder with the version as the name. Let's suppose you bump the version of your project from `v2.3.0` to `v2.4.0`. Both versions would remain on your Space, under different paths:\n\n- `v2.3.0` -\u003e `https://SPACE.fra1.digitaloceanspaces.com/js/v2.3.0/index.min.js`\n- `v2.4.0` -\u003e `https://SPACE.fra1.digitaloceanspaces.com/js/v2.4.0/index.min.js`\n\nThe most recent version will be available with the `latest` tag:\n\n- `latest` -\u003e `https://SPACE.fra1.digitaloceanspaces.com/js/latest/index.min.js`\n\nThe `versioning` parameter can be set to true/false, or a string representing the path to the `package.json` file.\n\n[See example](#use-packagejson-version)\n\n### CDN Domain\n\nInstead of outputting the normal DigitalOcean domain `https://SPACE.fra1.digitaloceanspaces.com/`, you can also specify your custom CDN domain with `cdn_domain`.\n\n**Note:** `https://SPACE.REGION.digitaloceanspaces.com/` is still used to connect to your Space, [do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) will just use it when logging it and assigning it to the action output variable `output_url`.\n\n[See example](#specify-a-custom-cdn-domain)\n\n### File permissions\n\nBy default all uploaded files have their access permission set to `public-read`. This means that anyone can access them via their own Space URL. If you want to block public access, you can set `permission` to `private`.\n\n## 📖 Examples\n\nHere are a few examples to help you get started!\n\n### Basic Example\n\nThis example will run everytime you create a new release and then upload all files and directories in the `src` folder to the root of your Space.\n\n```yml\nname: Upload to DO Spaces\non:\n  release:\n    types: [created]\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: BetaHuhn/do-spaces-action@v2\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: src\n```\n\n### Custom output path\n\nThis example will run everytime you create a new release and then upload the `src` directory to the `dist` folder on your Space.\n\n```yml\nname: Upload to DO Spaces\non:\n  release:\n    types: [created]\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: BetaHuhn/do-spaces-action@v2\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: src\n          out_dir: dist\n```\n\n### Single file upload\n\nThis example will run everytime you create a new release and then upload the file `path/to/file.js` to the root of your Space.\n\n```yml\nname: Upload to DO Spaces\non:\n  release:\n    types: [created]\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: BetaHuhn/do-spaces-action@v2\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: path/to/file.js\n```\n\n### Use package.json version\n\nThis example will run everytime you create a new release and then upload the file `dist/index.min.js` to both the `latest` and `vX.X.X` folder in the js directory in your Space.\n\n```yml\nname: Upload to DO Spaces\non:\n  release:\n    types: [created]\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: BetaHuhn/do-spaces-action@v2\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: dist/index.min.js\n          out_dir: js\n          versioning: true\n```\n\nThe `versioning` parameter can be set to true/false, or a string representing the path to the `package.json` file.\n\n### Specify a custom CDN domain\n\n```yml\nname: Upload to DO Spaces\non:\n  release:\n    types: [created]\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: BetaHuhn/do-spaces-action@v2\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: src\n          cdn_domain: cdn.example.com\n```\n\n### Create deployment on GitHub\n\n[do-spaces-action](https://github.com/BetaHuhn/do-spaces-action) can be perfectly intergrated with Actions like [Create Deployment Status Update](https://github.com/marketplace/actions/create-deployment-status-update) to create a deployment once all files are uploaded:\n\n```yml\nname: Upload to DO Spaces\non:\n  release:\n    types: [created]\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: altinukshini/deployment-action@releases/v1\n        name: start deployment\n        id: deployment\n        with:\n          token: ${{ secrets.GITHUB_TOKEN}}\n          description: Uploading files to DO Spaces\n          environment: production\n\n      - uses: BetaHuhn/do-spaces-action@v2\n        name: upload to spaces\n        id: spaces\n        with:\n          access_key: ${{ secrets.ACCESS_KEY}}\n          secret_key: ${{ secrets.SECRET_KEY }}\n          space_name: ${{ secrets.SPACE_NAME }}\n          space_region: ${{ secrets.SPACE_REGION }}\n          source: src\n          out_dir: dist\n          versioning: true\n\n      - name: update deployment status\n        if: always()\n        uses: altinukshini/deployment-status@releases/v1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          state: ${{ job.status }}\n          deployment_id: ${{ steps.deployment.outputs.deployment_id }}\n          environment_url: ${{steps.spaces.outputs.output_url}}\n          description: \"Successfully uploaded files to DO Spaces\"\n```\n\nHere's how that will look on your Repo:\n\n![Deployment preview](https://cdn.mxis.ch/assets/do-spaces-action/deployment.png)\n\n## 📝 To do\n\nHere is what's currently planned for [do-spaces-action](https://github.com/BetaHuhn/do-spaces-action):\n\n- **Different environments:** add the option to change the upload path pased on the environment (staging/production)\n\nIf you have an idea, feel free to [open an issue](https://github.com/BetaHuhn/do-spaces-action/issues/new?labels=feature+request\u0026template=feature_request.md)!\n\n## 💻 Development\n\nIssues and PRs are very welcome!\n\nThe actual source code of this library is in the `src` folder.\n\n- run `yarn lint` or `npm run lint` to run eslint.\n- run `yarn start` or `npm run start` to run the Action locally.\n- run `yarn build` or `npm run build` to produce a production version in the `dist` folder.\n\n## ❔ About\n\nThis project was developed by me ([@betahuhn](https://github.com/BetaHuhn)) in my free time. If you want to support me:\n\n[![Donate via PayPal](https://img.shields.io/badge/paypal-donate-009cde.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=394RTSBEEEFEE)\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F81S2RK)\n\n## 📄 License\n\nCopyright 2021 Maximilian Schiller\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetahuhn%2Fdo-spaces-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetahuhn%2Fdo-spaces-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetahuhn%2Fdo-spaces-action/lists"}