Pr branch 2 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build PR And Deploy | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
concurrency: preview-${{ github.ref }} | |
jobs: | |
Build: | |
uses: ./.github/workflows/build.yml | |
with: | |
pr-number: ${{ github.event.number }} | |
Build-And-Deploy-PR-Branch: | |
runs-on: ubuntu-latest | |
needs: Build | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Download Storybook Assets | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist-without-markdown | |
path: ./storybook-static | |
- name: Deploy preview | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./storybook-static/ |