Skip to content

Commit

Permalink
combine build and deply in one action
Browse files Browse the repository at this point in the history
  • Loading branch information
draedful committed Oct 4, 2024
1 parent 7993594 commit aea986d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pr-preview-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Preview Build
name: PR Preview

on:
pull_request:
Expand All @@ -10,4 +10,15 @@ jobs:
steps:
- uses: gravity-ui/preview-build-action@v2
with:
node-version: 18
node-version: 18
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- uses: gravity-ui/preview-deploy-action@v2
with:
project: graph
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}
20 changes: 0 additions & 20 deletions .github/workflows/pr-preview-deploy.yml

This file was deleted.

0 comments on commit aea986d

Please sign in to comment.