Skip to content

Merge pull request #611 from alicolville/compressed-admin.js #66

Merge pull request #611 from alicolville/compressed-admin.js

Merge pull request #611 from alicolville/compressed-admin.js #66

Workflow file for this run

name: Build WP Plugin (zip) and FTP to web server #3
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: /home/runner/work/Weight-Tracker/Weight-Tracker/weight-loss-tracker/
- name: Create temporary directories
run: |
mkdir /tmp/zip/
mkdir /tmp/code/
- name: Build the zip (excluding certain folders)
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: /home/runner/work/Weight-Tracker/Weight-Tracker/
filename: '/tmp/zip/weight-tracker.zip'
exclusions: '*.git* /*node_modules/* .editorconfig /*playwright* /*docs* /*dist*'
- name: FTP - Zip file for user downloads
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_URL }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /tmp/zip/
- name: FTP - update plugin on Yeken.uk
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_URL }}
username: ${{ secrets.FTP_WT_USERNAME }}
password: ${{ secrets.FTP_WT_PASSWORD }}
local-dir: /home/runner/work/Weight-Tracker/Weight-Tracker/weight-loss-tracker/
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/docs/**
**/playwright/**
**/dist/**