Skip to content

Commit f187a5e

Browse files
committed
ci(github-actions)🔄: Add PR preview deployment step to GitHub Actions workflow
- Introduced a new step in the deploy job to handle PR preview deployment. - Utilized the rossjrw/pr-preview-action for generating previews for pull requests.
1 parent 4cc6406 commit f187a5e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎.github/workflows/deploy.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ jobs:
4444
enable_jekyll: false
4545
disable_nojekyll: false
4646

47-
# build-deploy-leanpub:
48-
# runs-on: ubuntu-22.04
49-
# needs: build-environment
50-
# steps:
51-
# - uses: actions/checkout@v4
47+
48+
- name: Deploy preview
49+
uses: rossjrw/pr-preview-action@v1
50+
if: github.event_name == 'pull_request'
51+
with:
52+
source-dir: ./site
53+
5254

5355
# - name: Download environment tarball
5456
# uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)