Skip to content

Commit 3f8fd92

Browse files
committed
ci: add module zip build workflow
1 parent 2113811 commit 3f8fd92

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/build-module.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Theme Module
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
name: Build module ZIP
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install zip
21+
run: sudo apt-get update && sudo apt-get install -y zip
22+
23+
- name: Package module
24+
run: bash scripts/package.sh
25+
26+
- name: Upload module artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: ColorOS-Themes-Rock
30+
path: dist/*.zip
31+
if-no-files-found: error

0 commit comments

Comments
 (0)