Skip to content

Deploy Static Files to Server #3

Deploy Static Files to Server

Deploy Static Files to Server #3

Workflow file for this run

name: "Deploy Static Files to Server"
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
environment:
name: FTP
steps:
- name: "Checking Out"
uses: actions/[email protected]
- name: Setting Up Node.js
uses: actions/[email protected]
with:
node-version: "21"
cache: "yarn"
- name: Installing dependencies
run: yarn
- name: Generating Static Files
run: yarn build
- name: Deploy to Server
uses: joutvhu/ftp-transfer@v1
with:
host: ${{ secrets.ftp_server }}
port: ${{ secrets.ftp_port }}
username: ${{ secrets.ftp_uname }}
password: ${{ secrets.ftp_pass }}
commands: |
pwd
ls