-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (46 loc) · 1.48 KB
/
build-zip.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build WP Plugin (zip) and FTP to web server #3
on: [push]
#on:
# push:
# tags:
# - v1.**
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/
dry-run: true
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
**/docs/**
**/playwright/**
**/dist/**