Skip to content

Commit

Permalink
Fix path error with preview deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-youssef-bitwarden committed Dec 19, 2024
1 parent 42fa9e5 commit cf837c5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ jobs:
- name: Install, build, and upload your site output
uses: withastro/action@44cbafd43567733e3b007918c6e0711480560516 # v3.0.0
with:
path: dist/pr-${{ github.event.pull_request.number }}
package-manager: npm # or yarn/pnpm if you use those

# Move the build output to the PR-specific directory
- name: Move build output
run: |
mkdir -p ./dist/pr-preview/pr-${{ github.event.pull_request.number }}
mv ./dist/* ./dist/pr-preview/pr-${{ github.event.pull_request.number }}/ || true
deploy:
needs: build
Expand Down

0 comments on commit cf837c5

Please sign in to comment.