33
33
issue-number : ${{ github.event.pull_request.number }}
34
34
comment-author : " github-actions[bot]"
35
35
body-includes : " Preview Deployment"
36
-
36
+
37
37
- name : Update Comment if exists
38
38
if : github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0
39
39
uses :
peter-evans/[email protected]
@@ -57,11 +57,12 @@ jobs:
57
57
58
58
- name : Copy Static Files
59
59
run : |
60
- mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts
60
+ mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts static/resources/models
61
61
find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \;
62
62
find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \;
63
63
find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \;
64
64
find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
65
+ find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \;
65
66
66
67
- name : Gatsby main cache
67
68
uses : actions/cache@v4
@@ -107,7 +108,7 @@ jobs:
107
108
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \
108
109
--json \
109
110
> deploy_output.json
110
-
111
+
111
112
- name : Generate URL Preview
112
113
if : github.event_name == 'pull_request'
113
114
id : url_preview
@@ -124,7 +125,7 @@ jobs:
124
125
## Preview Deployment
125
126
🚀 Preview this PR: ${{ steps.url_preview.outputs.NETLIFY_PREVIEW_URL }}
126
127
📍 Commit SHA: ${{ github.sha }}
127
-
128
+
128
129
- name : Update PR Preview Comment
129
130
if : github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0
130
131
uses :
peter-evans/[email protected]
0 commit comments