Skip to content

Fix/carousel component (#76) #6

Fix/carousel component (#76)

Fix/carousel component (#76) #6

name: Build and Deploy Production
on:
push:
branches:
- develop
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
CONTENTFUL_ACCESS_TOKEN: ${{ secrets.CONTENTFUL_ACCESS_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy to SFTP
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
sftp_only: true
server: ${{ secrets.SFTP_HOST }}
username: ${{ secrets.SFTP_USERNAME }}
password: ${{ secrets.SFTP_PASSWORD }}
port: ${{ secrets.SFTP_PORT }}
local_path: "./public/*"
remote_path: ${{ secrets.REMOTE_PATH }}