chore: remove openshift, deploy to github pages for PR pipeline #60
Workflow file for this run
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: PR | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: preview-${{ github.ref }} | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-22.04 | |
defaults: | |
run: | |
working-directory: ./patterns | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
if: github.event.action != 'closed' | |
with: | |
node-version: 20 | |
cache: npm | |
cache-dependency-path: patterns/package-lock.json | |
- name: Install dependencies | |
if: github.event.action != 'closed' | |
run: npm ci --ignore-scripts | |
- name: Install Dependencies and Build For PR🔧 | |
if: github.event.action != 'closed' | |
env: | |
BASE_URL: /nr-architecture-patterns-library/pr-preview/pr-${{github.event.number}} | |
run: | | |
npm run build | |
- name: Deploy preview | |
uses: rossjrw/pr-preview-action@v1 | |
with: | |
source-dir: ./patterns/build |