Skip to content

Commit c6b560b

Browse files
authored
Update release pipeline (#786)
* use global gitignore * add script to install themes * install themes
1 parent 048e133 commit c6b560b

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

.github/workflows/build-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
run: |
5959
cd $GITHUB_WORKSPACE
6060
./scripts/install-plugins.sh vendor public_html/lists/admin/plugins/
61+
./scripts/install-themes.sh vendor public_html/lists/admin/ui/
6162
6263
- name: Install the phpList4 based REST API
6364
run: |

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ public_html/lists/admin/info/
1212
.vagrant
1313
public_html/lists/updater
1414
public_html/lists/texts
15+
public_html/lists/admin/plugins/
16+
/parked/
17+
public_html/lists/admin/ui/dressprow
18+
public_html/lists/admin/ui/dressprow-ph
19+
public_html/lists/admin/ui/phplist-ui-*
1520

public_html/lists/admin/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

public_html/lists/admin/ui/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/install-themes.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
from=$1
4+
to=$2
5+
6+
[[ -z $from ]] || [[ ! -d $from ]] || [[ -z $to ]] || [[ ! -d $to ]] && exit;
7+
8+
echo $from $to
9+
10+
for theme in $(ls -d $from/*/phplist-ui-*); do
11+
[[ ! -z "$(ls -A $theme)" ]] && {
12+
echo installing $theme
13+
cp -R $theme $to
14+
}
15+
done

0 commit comments

Comments
 (0)