Skip to content

action ~

action ~ #6

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: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
port: ${{ secrets.FTP_PORT }}
username: ${{ secrets.FTP_UNAME }}
password: ${{ secrets.FTP_PASS }}
protocol: ftp
local-dir: ./opensource/
server-dir: /opensource/