We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 510aed1 commit 5b80351Copy full SHA for 5b80351
.github/workflows/docs.yml
@@ -69,11 +69,10 @@ jobs:
69
});
70
71
publish:
72
- if: github.ref == 'refs/heads/main'
73
needs: build
74
runs-on: ubuntu-latest
75
environment:
76
- name: github-pages
+ name: ${{ github.event_name == 'pull_request' && format('preview-pr-{0}', github.event.pull_request.number) || 'github-pages' }}
77
url: ${{ steps.deployment.outputs.page_url }}
78
steps:
79
- name: Setup Pages
@@ -82,3 +81,5 @@ jobs:
82
81
- name: Deploy to GitHub Pages
83
id: deployment
84
uses: actions/deploy-pages@v4
+ with:
85
+ preview: ${{ github.event_name == 'pull_request' }}
0 commit comments