Skip to content

Commit

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

on:
pull_request:
Expand All @@ -10,15 +10,4 @@ jobs:
steps:
- uses: gravity-ui/preview-build-action@v2
with:
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 }}
node-version: 18
22 changes: 22 additions & 0 deletions .github/workflows/pr-preview-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR Preview Deploy

on:
workflow_run:
workflows: ['PR 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@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 }}

0 comments on commit 12d589b

Please sign in to comment.