Skip to content

fixed code bugs

fixed code bugs #57

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
paths:
- '**/*.php'
- '**/*.js'
- '**/*.scss'
- '**/*.css'
- theme.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Node Setup
uses: actions/[email protected]
with:
cache: 'npm'
- name: Upload Artifact
uses: actions/[email protected]
with:
name: theme-build
path: './'
retention-days: 1
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Download Artifact
uses: actions/[email protected]
- name: Deploy
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
port: ${{ secrets.FTP_PORT }}
password: ${{ secrets.FTP_PASS }}
server-dir: './wp-content/themes/it-residence/'