Skip to content

Commit c7f9a4b

Browse files
committed
upload artifact on failure
1 parent 2f9deaf commit c7f9a4b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/quarto_netlify.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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
[![Deploy: failure](https://img.shields.io/badge/Deploy-failure-critical)](${{ 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
[![Deploy: failure](https://img.shields.io/badge/Deploy-failure-critical)](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-

0 commit comments

Comments
 (0)