-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (40 loc) · 1.33 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
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: mkdir -p /builds/tmp /builds/target
- name: Checkout
uses: actions/checkout@v2
- name: Copy Theme Files from Original to Temp
run: cp -r . /builds/tmp
- name: Remove excluded files
run: |
cat /home/runner/work/halo-theme-higan-hz/halo-theme-higan-hz/.github/exclude-list.txt | xargs rm -rf
working-directory: /builds/tmp
- name: Zip Theme in Chinese
run: |
zip -9 -r howiehz-higan-cn.zip .
mv howiehz-higan-cn.zip /builds/target
working-directory: /builds/tmp
- name: Zip Theme in English
run: |
rm settings.yaml
zip -9 -r howiehz-higan-en.zip .
mv /home/runner/work/halo-theme-higan-hz/halo-theme-higan-hz/i18n-settings/settings.en.yaml settings.yaml
zip -9 -r /builds/target/howiehz-higan-en.zip settings.yaml
mv howiehz-higan-en.zip /builds/target
working-directory: /builds/tmp
- name: Upload Theme Build Target
uses: actions/upload-artifact@v4
with:
name: theme-artifact
path: /builds/target/*