Skip to content

Updae Contact Form + Build Deploy Action #32

Updae Contact Form + Build Deploy Action

Updae Contact Form + Build Deploy Action #32

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- develop
jobs:
build-and-deploy:
name: Build and deploy Gatsby site
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '16.18.1'
registry-url: "https://npm.greensock.com/"
scope: "@gsap"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Gatsby CLI
uses: borales/actions-yarn@v4
with:
cmd: add [email protected]
- name: Install All Deoendencies
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Verify build
run: ls -la public
- name: Deploying via FTP
uses: sebastianpopp/ftp-action@releases/v2
with:
host: 164.90.233.208
user: admin_kdsigner
password: ${{ secrets.SS_FTP }}
options: '--only-newer --delete'
localDir: './public/'
remoteDir: 'public_html/'