Styling updates #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |