File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build and Deploy Zola Site
1+ name : Build and Deploy
22
33on :
44 push :
55 branches :
66 - master
77
8+ env :
9+ ZOLA_VERSION : ' 0.22.1'
10+ HOST : ${{ vars.HOST }}
11+ HOST_DIR : ${{ vars.HOST_DIR }}
12+ SSH_USERNAME : ${{ secrets.SSH_USERNAME }}
13+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
14+
815jobs :
916 build :
1017 runs-on : ubuntu-latest
1118 steps :
1219 - name : Checkout code
13- uses : actions/checkout@v3
20+ uses : actions/checkout@v6
1421
1522 - name : Build site with Zola
16- uses : docker://ghcr.io/getzola/zola:v0.20.0
23+ uses : docker://ghcr.io/getzola/zola:v${ZOLA_VERSION}
1724 with :
1825 args : build
1926
2027 - name : Upload public directory
21- uses : actions/upload-artifact@v4
28+ uses : actions/upload-artifact@v6
2229 with :
2330 name : public-site
2431 path : public
@@ -29,16 +36,16 @@ jobs:
2936 if : github.ref == 'refs/heads/master'
3037 steps :
3138 - name : Download site artifact
32- uses : actions/download-artifact@v4
39+ uses : actions/download-artifact@v6
3340 with :
3441 name : public-site
3542 path : public
3643
3744 - name : Set up SSH
38- uses : webfactory/ssh-agent@v0.9.0
45+ uses : webfactory/ssh-agent@v0.9.1
3946 with :
40- ssh-private-key : ${{ secrets. SSH_PRIVATE_KEY } }
47+ ssh-private-key : ${SSH_PRIVATE_KEY}
4148
4249 - name : Deploy via rsync
4350 run : |
44- rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" public/* drone@it-new.pedf.cuni.cz:/home/www/web-kittv/
51+ rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" public/* ${SSH_USERNAME}@${HOST}:${HOST_DIR}
Original file line number Diff line number Diff line change @@ -12,18 +12,13 @@ build_search_index = false
1212generate_sitemap = true
1313generate_robots_txt = true
1414
15-
1615[markdown ]
17- highlight_code = false
1816smart_punctuation = true
19-
2017external_links_target_blank = true
2118external_links_no_follow = true
2219external_links_no_referrer = true
2320
24-
2521[extra ]
26-
2722nav_primary = [
2823 {path = " katedra" , name = " Katedra" },
2924 {path = " uchazeci" , name = " Uchazeči" },
You can’t perform that action at this time.
0 commit comments