https://github.com/gravity-ui/preview-deploy-action
https://github.com/gravity-ui/preview-deploy-action
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gravity-ui/preview-deploy-action
- Owner: gravity-ui
- License: mit
- Created: 2022-08-23T12:08:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T15:56:04.000Z (over 1 year ago)
- Last Synced: 2025-01-28T12:40:54.583Z (over 1 year ago)
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# 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
```yaml
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 }}
```