File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,13 @@ jobs:
107107 dir : ' _site'
108108 alias : " ${{ env.BRANCH_NAME }}"
109109 message : ' Deploy preview ${{ github.ref }}'
110+
111+ - name : Upload artifact
112+ if : failure()
113+ uses : actions/upload-artifact@v2
114+ id : upload-artifact
115+ with :
116+ name : _site
110117
111118 - name : Comment on PR (success)
112119 uses : thollander/actions-comment-pull-request@v2
@@ -122,6 +129,8 @@ jobs:
122129 with :
123130 message : |
124131 [](${{ steps.deploy_preview.outputs.logs }})
132+
133+ Artifacts are available for download [here](${{ steps.upload-artifact.outputs.artifact_url }})
125134 comment_tag : deploy_status
126135
127136 - name : Comment on PR (actions failure)
@@ -130,5 +139,6 @@ jobs:
130139 with :
131140 message : |
132141 [](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}/jobs/${{github.job}})
142+
143+ Artifacts are available for download [here](${{ steps.upload-artifact.outputs.artifact_url }})
133144 comment_tag : deploy_status
134-
You can’t perform that action at this time.
0 commit comments