Commit 2c45b11 1 parent 8fefa3f commit 2c45b11 Copy full SHA for 2c45b11
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 42
42
# Note: not using acryldata/sane-checkout-action because this is a
43
43
# pull_request_target event, and hence requires `ref`.
44
44
with :
45
- ref : ${{ github.event.pull_request.base .sha }}
45
+ ref : ${{ github.event.pull_request.head .sha }}
46
46
- uses : actions/setup-python@v5
47
47
with :
48
48
python-version : " 3.10"
@@ -58,11 +58,17 @@ jobs:
58
58
env :
59
59
GITHUB_TOKEN : ${{ github.token }}
60
60
- name : Publish
61
- uses : cloudflare/pages-action@v1
61
+ # Cloudflare's pages-action does not support PRs from forks.
62
+ # See https://developers.cloudflare.com/pages/platform/known-issues/
63
+ # Based on the discussion here https://github.com/json-schema-org/website/issues/330
64
+ # we can use a direct upload to work around this limitation.
65
+ # See https://github.com/AdrianGonz97/refined-cf-pages-action#enabling-pr-previews-from-forks
66
+ uses : AdrianGonz97/refined-cf-pages-action@v1
62
67
with :
63
68
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
64
69
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
65
70
projectName : ${{ vars.CLOUDFLARE_WHEELS_PROJECT_NAME }}
71
+ deploymentName : ${{ vars.CLOUDFLARE_WHEELS_PROJECT_NAME }}
66
72
workingDirectory : python-build
67
73
directory : site
68
74
gitHubToken : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments