Home
Softono

Yandex Storage Website Action

Open source TypeScript
15
Stars
3
Forks
3
Issues
1
Watchers
3 years
Last Commit

 About Yandex Storage Website Action

Static website hosting using Yandex Object Storage.

Platforms

Web Self-hosted Cloud

Languages

TypeScript

Links

Need Help Installing Yandex Storage Website Action?

We provide expert installation service for this software. Our team will install, configure, and secure Yandex Storage Website Action on your server. plans start at just $30.

Yandex Storage Website Action

View on GitHub

Yandex Object Storage static website hosting GitHub action

Hosting setup

Configuration

Key Value Default Required
access-key-id The ID of the key that you received when generating the static key.
secret-access-key The secret key that you received when generating the static key.
bucket Bucket name.
working-directory Specify the working directory of where to run the action. The working directory is the directory in which the action is running and is used as the base directory for any relative paths used by the action. root project directory
include Include patterns for files. Collects all files in the working-directory by default. ["**/*"]
exclude Exclude patterns for files. []
clear Clear bucket before deploy. false

Examples

Hosting full build directory

name: Deploy

on:
    push:
        branches: [main]

jobs:
    deploy:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v3
            - uses: actions/setup-node@v3
              with:
                  node-version: 16
            # Build
            - run: npm ci
            - run: npm run build
            # Deploy
            - uses: nekitcorp/yandex-storage-website-action@v2
              with:
                  access-key-id: ${{ secrets.ACCESS_KEY_ID }}
                  secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
                  bucket: ${{ secrets.BUCKET }}
                  working-directory: build
                  clear: true

Exclude some files

name: Deploy

on:
    push:
        branches: [main]

jobs:
    deploy:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v3
            - uses: actions/setup-node@v3
              with:
                  node-version: 16
            # Build
            - run: npm ci
            - run: npm run build
            # Deploy
            - uses: nekitcorp/yandex-storage-website-action@v2
              with:
                  access-key-id: ${{ secrets.ACCESS_KEY_ID }}
                  secret-access-key: ${{ secrets.SECRET_ACCESS_KEY }}
                  bucket: ${{ secrets.BUCKET }}
                  working-directory: build
                  include: |
                      **/*
                  exclude: |
                      **/*.d.ts
                      package.json
                      README.md