CV amends #23
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: 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_giulianicola | |
password: ${{ secrets.SS_FTP }} | |
options: 'mirror --only-newer --delete' | |
localDir: './public/' | |
remoteDir: 'public_html/' |