File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -39,28 +39,30 @@ jobs:
39
39
run : yarn build
40
40
41
41
- name : Deploy to Netlify
42
-
43
- with :
42
+ env :
44
43
NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
45
44
NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
46
- build_directory : build
47
- install_command : " echo Skipping installing the dependencies"
48
- build_command : " echo Skipping building the web files"
49
- deploy_alias : preview-${{ github.event.pull_request.number }}
45
+ run : |
46
+ netlify deploy \
47
+ --dir=build \
48
+ --no-build \
49
+ --auth=$NETLIFY_AUTH_TOKEN \
50
+ --site=$NETLIFY_SITE_ID \
51
+ --alias=preview-${{ github.event.pull_request.number }} \
52
+ --message="Preview Deploy from GitHub Actions"
50
53
51
54
- name : " Update PR"
52
- if : ${{ env.NETLIFY_PREVIEW_URL }}
55
+ if : success()
53
56
uses : thollander/actions-comment-pull-request@v2
54
57
with :
55
58
message : |
56
59
:rocket: **Build success!**
57
60
58
- Latest successful preview: ${{ env.NETLIFY_PREVIEW_URL }}
61
+ Latest successful preview: https://preview- ${{ github.event.pull_request.number }}--questdb-documentation.netlify.app
59
62
60
63
Commit SHA: ${{ github.event.pull_request.head.sha }}
61
64
62
65
> :package: Build generates a preview & updates link on each commit.
63
- comment_tag : preview
64
66
65
67
validate-links :
66
68
name : " Validate broken links"
You can’t perform that action at this time.
0 commit comments