Skip to content

Merge pull request #56 from MikeCheek/dev #98

Merge pull request #56 from MikeCheek/dev

Merge pull request #56 from MikeCheek/dev #98

name: πŸš€ Deploy website on push on FTP server
on:
push:
branches:
- main
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: πŸ”¨ Build Project
run: |
yarn install --frozen-lockfile
yarn build
- name: πŸ“‚ Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: nt.syskrack.org
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./public/
server-dir: ./public_html/