-
Notifications
You must be signed in to change notification settings - Fork 16
33 lines (32 loc) · 1.03 KB
/
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
33
on:
push:
branches: [master, main]
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.115.1
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: cd main && git submodule update --init --recursive && hugo
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.joern.io
username: ${{ secrets.ftps_username }}
password: ${{ secrets.ftps_password }}
protocol: ftps
server-dir: public_html/
local-dir: main/public/