Skip to content

Commit

Permalink
infra: correct action configs
Browse files Browse the repository at this point in the history
  • Loading branch information
trusz committed Jul 9, 2024
1 parent 65cc6b9 commit 4843124
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Deploy PR previews


on:
pull_request:
types:
Expand All @@ -8,9 +9,11 @@ on:
- synchronize
- closed
paths:
- "packages/openscd/**"
- "packages/**"

concurrency: preview-${{ github.ref }}
env:
PR_NUMBER: ${{ github.event.number }}

jobs:
deploy-preview:
Expand All @@ -25,9 +28,11 @@ jobs:
run: |
npm i @nx/nx-linux-x64-gnu
npm clean-install
npm run-script build
PUBLIC_URL=open-scd/pr-preview/pr-$PR_NUMBER npm run-script build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: packages/openscd/dist
source-dir: packages/distribution/build
umbrella-dir: pr-preview

0 comments on commit 4843124

Please sign in to comment.