File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Deploy site
3
3
on :
4
4
# Runs on pushes targeting the default branch
5
5
push :
6
- branches : ['main']
6
+ branches : ['main', 'deploy-test' ]
7
7
8
8
# Allows you to run this workflow manually from the Actions tab
9
9
workflow_dispatch :
@@ -30,12 +30,18 @@ jobs:
30
30
env :
31
31
DEPLOY_DIR : _site/
32
32
DEPLOY_BRANCH : gh-pages
33
+ NODE_VERSION : 20.x
33
34
steps :
34
35
- name : Checkout
35
- uses : actions/checkout@v3
36
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
36
37
with :
37
38
submodules : recursive
38
39
40
+ - name : Use Node.js ${{ env.NODE_VERSION }}
41
+ uses : actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
42
+ with :
43
+ node-version : ${{ env.NODE_VERSION }}
44
+
39
45
- name : Prepare deployment branch
40
46
run : |
41
47
mkdir "${DEPLOY_DIR}"
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export default function config(eleventyConfig) {
155
155
156
156
eleventyConfig . addAsyncShortcode ( 'attachment' , async ( ticketId , filename ) => {
157
157
const content = await fs . promises . readFile (
158
- path . join ( __dirname , ` raw-attachment/ticket/${ ticketId } `, filename )
158
+ path . resolve ( `./ raw-attachment/ticket/${ ticketId } `, filename )
159
159
)
160
160
return content . toString ( )
161
161
} )
You can’t perform that action at this time.
0 commit comments