Merge pull request #182 from alicolville/features #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build WP Plugin (zip) and FTP to web server | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: /home/runner/work/meal-tracker/meal-tracker/meal-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/meal-tracker/meal-tracker/ | |
filename: '/tmp/zip/meal-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_ZIP_USERNAME }} | |
password: ${{ secrets.FTP_ZIP_PASSWORD }} | |
local-dir: /tmp/zip/ | |
- name: FTP - update plugin on Yeken.uk | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.FTP_URL }} | |
username: ${{ secrets.FTP_PLUGIN_USERNAME }} | |
password: ${{ secrets.FTP_PLUGIN_PASSWORD }} | |
local-dir: /home/runner/work/meal-tracker/meal-tracker/meal-tracker/ | |
exclude: | | |
**/.git* | |
**/.git*/** | |
**/node_modules/** | |
**/docs/** | |
**/playwright/** | |
**/dist/** |