Skip to content

Commit b40895b

Browse files
authored
Update README.md
1 parent 1cdb914 commit b40895b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
1-
# docker-miniprogram-ci
1+
# ghcr.io/susining/miniprogram-ci
2+
3+
## How to use in GitHub Actions
4+
5+
```yaml
6+
name: Miniprogram CI
7+
8+
on:
9+
release:
10+
types:
11+
- released
12+
13+
env:
14+
APP_ID: {Your appid here}
15+
16+
jobs:
17+
job:
18+
name: CI/CD
19+
runs-on: [self-hosted, Linux, X64]
20+
container:
21+
image: ghcr.io/susining/miniprogram-ci:v1.0.0
22+
volumes:
23+
- /path/to/private/keys:/private-keys
24+
steps:
25+
- uses: actions/checkout@v3
26+
- run: npm install
27+
- run: npm run build
28+
- run: miniprogram-ci upload -v false --pp ./dist --pkp /private-keys/private-key.txt --enable-es6 true --enable-minify true --enable-autoprefixwxss true --uv $GITHUB_REF_NAME --ud $GITHUB_SHA --appid $APP_ID --qrcode-format terminal -r 1
29+
```

0 commit comments

Comments
 (0)