Skip to content

Commit 79aac5c

Browse files
committed
Update Zola and Git Workflow
1 parent f1f21ca commit 79aac5c

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
name: Build and Deploy Zola Site
1+
name: Build and Deploy
22

33
on:
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+
815
jobs:
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}

config.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,13 @@ build_search_index = false
1212
generate_sitemap = true
1313
generate_robots_txt = true
1414

15-
1615
[markdown]
17-
highlight_code = false
1816
smart_punctuation = true
19-
2017
external_links_target_blank = true
2118
external_links_no_follow = true
2219
external_links_no_referrer = true
2320

24-
2521
[extra]
26-
2722
nav_primary = [
2823
{path = "katedra", name = "Katedra"},
2924
{path = "uchazeci", name = "Uchazeči"},

0 commit comments

Comments
 (0)