Skip to content

Deploy website

Deploy website #11

name: Deploy website
on: workflow_dispatch
jobs:
build:
name: Deploy website
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
- name: npm install
run: npm ci
- name: Publish
env:
SFTP_HOST: ${{ secrets.SFTP_HOST }}
SFTP_PORT: ${{ secrets.SFTP_PORT }}
SFTP_USER: ${{ secrets.SFTP_USER }}
SFTP_PASS: ${{ secrets.SFTP_PASS }}
SFTP_REMOTE_WEBSITE_DIR: ${{ secrets.SFTP_REMOTE_WEBSITE_DIR }}
run: node publish_website.js