Skip to content

updated actions

updated actions #2

Workflow file for this run

on:
push:
branches:
- main
name: Deploy website on push
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout
- name: Use Node.js 20
uses: actions/setup-node
with:
node-version: '20'
- name: Build Project
run: |
npm install
npm run build
- name: Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: ${{ secrets.GIT_CPANEL_REACT_SERVER }}
username: ${{ secrets.GIT_CPANEL_REACT_USER }}
password: ${{ secrets.GIT_CPANEL_REACT_PWD }}
protocol: ${{ secrets.GIT_CPANEL_REACT_PROTOCOL }}
local-dir: ./build/