-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 932 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on: [push]
jobs:
build-blog:
runs-on: ubuntu-latest
name: "Build and deploy blog"
steps:
- name: "Check out latest commit"
uses: actions/checkout@v4
with:
submodules: "true"
fetch-depth: 1
- name: "Setup everything"
run: |
sudo locale-gen de_DE
sudo locale-gen de_DE.UTF-8
sudo update-locale LANG=de_DE.UTF-8
- name: "Build site"
uses: kytta/zola-build-pages@v1
with:
zola-version: "0.19.1"
output-dir: "./public"
- name: "Deploy site"
if: ${{ github.ref_name == 'main' }}
uses: burnett01/[email protected]
with:
switches: -rav --delete
path: public/
remote_path: /var/www/virtual/n4th4n/bullenscheisse.de
remote_host: chiron.uberspace.de
remote_user: n4th4n
remote_key: ${{ secrets.SSH_KEY }}