add github deploy workflow

This commit is contained in:
Thomas (Tom) C. Gorordo 2025-04-26 01:21:14 -07:00
parent 0cee74ff54
commit f357d306fa
Signed by: tgorordo
GPG key ID: 0CBED22BB0D94490

22
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Deploy to titanic.caltech.edu/~tgorordo
on: push
jobs:
pandoc_index_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pandoc Compile `index.html`
uses: docker://pandoc/core:latest
with:
args: "--standalone --output=index.html README.md"
- name: SFTP Upload to `titanic.caltech.edu/tgorordo` in `~/public_html`
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
with:
server: titanic.caltech.edu
username: tgorordo
password: ${{secrets.titanic_password}}
local_path: ./*
remote_path: ./public_html