-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (57 loc) · 2.11 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Upload Theme
runs-on: ubuntu-latest
steps:
- name: Make Build Directory
run: |
pwd
mkdir -p ~/builds/tmp ~/builds/target
- name: Checkout
uses: actions/checkout@v2
- name: Copy Theme Files from Original to Temp
run: |
pwd
cp -r . ~/builds/tmp
- name: Remove excluded files
run: |
pwd
cd ~/builds/tmp
pwd
cat ~/work/halo-theme-higan-hz/halo-theme-higan-hz/.github/exclude-list.txt | xargs rm -rvf
- name: Zip Theme in Chinese
run: |
pwd
cd ~/builds/tmp
pwd
zip -9 -r howiehz-higan-cn.zip .
rm settings.yaml annotation-settings.yaml theme.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/settings.yaml settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/annotation-settings.yaml annotation-settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/theme.yaml theme.yaml
zip -9 -r howiehz-higan-cn.zip settings.yaml annotation-settings.yaml theme.yaml
mv howiehz-higan-cn.zip ~/builds/target
- name: Zip Theme in English
run: |
pwd
cd ~/builds/tmp
pwd
zip -9 -r howiehz-higan-en.zip .
rm settings.yaml annotation-settings.yaml theme.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/settings.en.yaml settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/annotation-settings.en.yaml annotation-settings.yaml
mv ~/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/theme.en.yaml theme.yaml
zip -9 -r howiehz-higan-en.zip settings.yaml annotation-settings.yaml theme.yaml
mv howiehz-higan-en.zip ~/builds/target
- name: Upload Theme Build Target
uses: actions/upload-artifact@v4
with:
name: theme-artifact
path: ~/builds/target/*