File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v3
10
- - uses : webfactory/ssh-agent@v0.7.0
11
- with :
12
- ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
9
+ - uses : actions/checkout@v4
13
10
- uses : shivammathur/setup-php@v2
14
11
with :
15
- php-version : ' 7.4 '
16
- - uses : actions/setup-node@v3
12
+ php-version : ' 8.1 '
13
+ - uses : actions/setup-node@v4
17
14
with :
18
- node-version : 18
15
+ node-version : 22
19
16
- run : npm install
20
17
- run : ./build.sh
18
+ env :
19
+ GH_ENGINIRO_TOKEN : ${{ secrets.GH_ENGINIRO_TOKEN }}
21
20
- run : touch build/site/.nojekyll
22
- - uses : actions/upload-pages-artifact@v1
21
+ - uses : actions/upload-pages-artifact@v3
23
22
with :
24
23
path : build/site/
25
24
deploy :
32
31
url : ${{ steps.deployment.outputs.page_url }}
33
32
runs-on : ubuntu-latest
34
33
steps :
35
- - uses : actions/deploy-pages@v1
34
+ - uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ while read -r repository; do
26
26
git pull
27
27
cd ../
28
28
else
29
+ if [ " $GH_ENGINIRO_TOKEN " != " " ]; then
30
+ repository=" $( echo " $repository " | sed " s%git@github.com:enginiro/%https://enginiro:$GH_ENGINIRO_TOKEN @github.com/enginiro/%" ) "
31
+ fi
32
+
29
33
git clone --depth 1 " $repository " --branch " main" --single-branch
30
34
fi
31
35
You can’t perform that action at this time.
0 commit comments