Skip to content

GitHub Action to upload files to Yandex Cloud Object Storage.

License

Notifications You must be signed in to change notification settings

yc-actions/yc-obj-storage-upload

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Action to upload files to Yandex Cloud Object Storage.

Coverage

The action uploads files from the given folder to Yandex Cloud Object Storage using Service Account Key as authorizations method.

Table of Contents

Usage

    - 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.

See 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.

License Summary

This code is made available under the MIT license.