Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yc-actions/yc-obj-storage-upload
GitHub Action to upload files to Yandex Cloud Object Storage.
https://github.com/yc-actions/yc-obj-storage-upload
actions github-actions s3 upload yandex-cloud
Last synced: about 17 hours ago
JSON representation
GitHub Action to upload files to Yandex Cloud Object Storage.
- Host: GitHub
- URL: https://github.com/yc-actions/yc-obj-storage-upload
- Owner: yc-actions
- License: mit
- Created: 2023-02-06T17:53:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-18T12:48:31.000Z (1 day ago)
- Last Synced: 2024-11-18T14:23:30.845Z (1 day ago)
- Topics: actions, github-actions, s3, upload, yandex-cloud
- Language: TypeScript
- Homepage:
- Size: 11.6 MB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## GitHub Action to upload files to Yandex Cloud Object Storage.
[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)
The action uploads files from the given folder to Yandex Cloud Object Storage using Service Account Key as authorizations method.
**Table of Contents**
- [Usage](#usage)
- [Permissions](#permissions)
- [License Summary](#license-summary)## Usage
```yaml
- name: Upload files to Object Storage
id: s3-upload
uses: yc-actions/yc-obj-storage-upload@v2
with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
bucket: ${{ secrets.BUCKET }}
root: ./src
include: |
*.js
package.json
exclude: |
**/*.ts
```
`yc-sa-json-credentials` should contain JSON with authorized key for Service Account. More info in [Yandex Cloud IAM documentation](https://cloud.yandex.ru/docs/container-registry/operations/authentication#sa-json).See [action.yml](action.yml) for the full documentation for this action's inputs and outputs.
## Permissions
To perform this action, it is required that the service account on behalf of which we are acting has granted the `storage.uploader` role or greater.
If you want to clear bucket before uploading files using `clear: true` option, the service account should have `storage.editor` role or greater.## License Summary
This code is made available under the MIT license.