Skip to content

Voxel.Wiki Site Generation v2 #5

Voxel.Wiki Site Generation v2

Voxel.Wiki Site Generation v2 #5

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: "Fix Perms"
run: sudo chown -R runner:runner public && ls -hal .
- 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 }}