Merge pull request #15 from Finding-Fortune/vertex-pulling #31
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
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: Checkout LFS objects | |
run: git lfs checkout | |
- 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: 21 | |
local-dir: ./public/ | |
server-dir: ./public_html/ | |
server: ${{ secrets.ftp_hostname }} | |
username: ${{ secrets.ftp_username }} | |
password: ${{ secrets.ftp_password }} |