Update actions-introduction.component.html #35
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-Storybook: | |
if: github.event.action != 'closed' | |
uses: ./.github/workflows/build.yml | |
with: | |
pr-number: ${{ github.event.number }} | |
Build-And-Deploy-PR-Branch: | |
runs-on: ubuntu-latest | |
if: ${{ !failure() }} | |
needs: Build-Storybook | |
steps: | |
# Only needed because rossjrw/pr-preview-action needs to run in a git repo | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- name: Download Storybook Assets | |
if: github.event.action != 'closed' | |
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/ |