Skip to content

Voxel.Wiki Site Generation v2 #3

Voxel.Wiki Site Generation v2

Voxel.Wiki Site Generation v2 #3

Workflow file for this run

name: Voxel.Wiki Site Generation v2
on:
#push:
# branches:
# - main
#pull_request:
workflow_dispatch:
jobs:
build:
name: "Build Site"
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: "Make Dir"
run: mkdir -p public && ls -hal .
- name: "Checkout"
uses: actions/checkout@master
with:
lfs: true
submodules: true
- name: "Build"
uses: shalzz/zola-deploy-action@186b5039430ab38781dde8feaf0861bcc017413f
env:
BUILD_DIR: .
BUILD_ONLY: true
OUT_DIR: public
# - name: "Deploy"
# uses: SamKirkland/[email protected]
# with:
# protocol: ftps
# port: 22
# dry-run: true
# local-dir: ./public/
# server-dir: ./public_html/
# server: ${{ secrets.ftp_hostname }}
# username: ${{ secrets.ftp_username }}
# password: ${{ secrets.ftp_password }}
- name: "Deploy 2"
run: lftp ${{ secrets.ftp_hostname }} -p 22 -u ${{ secrets.ftp_username }},${{ secrets.ftp_password }} -e "set ftp:ssl-force true; set ssl:verify-certificate false; mirror --delete --no-empty-dirs --reverse --continue --dereference -x ^\.git/$ public public_html; quit"