Try deploying to port 22 #15
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: CPanel Deployment to https://stephenandrewtaylor.net/rare-diseases | |
on: push | |
# on: | |
# push: | |
# branches: | |
# - main | |
jobs: | |
web-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "22" | |
- name: Build | |
run: | | |
npm i | |
npm run all | |
npx tsc | |
npx vite build --base https://stephenandrewtaylor.net/rare-diseases/ | |
ls | |
- name: Deploy | |
uses: SamKirkland/[email protected] | |
with: | |
server: ftp.stephenandrewtaylor.net | |
port: 22 | |
username: [email protected] | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: ./dist/ | |
server-dir: ./rare-diseases/ | |
dry-run: true |