Skip to content

gravity-ui/preview-deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preview-deploy-action

A GitHub action that deploys Storybook's static files to S3. It's the second action of sequence "Build -> Deploy".

Inputs

  • project (required) - ID of your project.
  • github-token (required) - Determinate which user creates sticky comment on PRs, usually it's a bot.
  • s3-key-id (required) - Key ID for uploading to S3.
  • s3-secret-key (required) - Secret key for uploading to S3.

Example

name: Preview Deploy

on:
  workflow_run:
    workflows: ['Preview Build']
    types:
    - completed

jobs:
  deploy:
    name: Deploy
    if: >
      github.event.workflow_run.event == 'pull_request' &&
      github.event.workflow_run.conclusion == 'success'
    runs-on: ubuntu-latest
    steps:
    - uses: gravity-ui/preview-deploy-action@v1
      with:
        project: uikit
        github-token: ${{ secrets.YC_UI_BOT_GITHUB_TOKEN }}
        s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
        s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published