Skip to content

Commit

Permalink
Added GitHub action for FTP deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
alicolville committed Sep 15, 2024
1 parent 845e117 commit 4dadf27
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update-yeken.uk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build WP Plugin (zip) and FTP to web server
on: push
# 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_MT_USERNAME }}
password: ${{ secrets.FTP_MT_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/**

0 comments on commit 4dadf27

Please sign in to comment.