-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
845e117
commit 4dadf27
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
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/** |