Skip to content

Yandex.Cloud Object Storage Upload (S3)

Actions
Deploy static website to Yandex Object Storage
1.3.2
Latest
Star (8)

Deploy static site to Yandex Object Storage

CI Check dist/ CodeQL Coverage

This flow allows you to upload to Yandex Object Storage so you can use it with Yandex CDN for a static site serving.

Configuration

Key Value Type Required
accessKeyId Service account access key ID string Yes
secretAccessKey Service account secret access key string Yes
bucketName Bucket name string Yes
sourceDir Path to upload folder string No
include Include patterns for files. multiline No
includeDots Include dots files. boolean No
exclude Exclude patterns for files. multiline No
clear Clear bucket before deploy (default: false) boolean No

Example

name: Deploy static site to Yandex Object Storage
on:
  push:
    branches:
      - master
jobs:
  deploy:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [16.x]
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}
      - name: Install NPM dependencies
        run: npm ci

      - name: Build application
        run: npm run build

      - uses: MrMeison/yc-object-storage-action@main
        with:
          accessKeyId: ${{ secrets.ACCESS_KEY_ID }}
          secretAccessKey: ${{ secrets.SECRET_ACCESS_KEY }}
          bucketName: ${{ secrets.BUCKET }}
          sourceDir: ./dist
          clear: true

Yandex.Cloud Object Storage Upload (S3) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploy static website to Yandex Object Storage
1.3.2
Latest

Yandex.Cloud Object Storage Upload (S3) is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.