Skip to content

Commit

Permalink
code of conduct
Browse files Browse the repository at this point in the history
  • Loading branch information
hui.zhao committed Feb 24, 2020
1 parent 216d9fa commit f267c42
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file: "./android-godeye-sample/build/outputs/apk/release/android-godeye-sample-release.apk"
release_notes_file: "CHANGELOG_NEW_VERSION.tmp"
release_notes_file: "./CHANGELOG_NEW_VERSION.tmp"
skip_cleanup: true
on:
tags: true
Expand Down
48 changes: 26 additions & 22 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,41 @@
# Code of Conduct

## Model
## Build

Model数据类,包含Config类型
### Build Sample APK

1. 必须实现Serializable接口
2. 必须@Keep
3. 内容必须可序列化
4. 必须添加toString方法
Clone then build, then run `android android-godeye-sample`

### Build Debug Dashboard

1. `cd android-godeye-monitor-dashboard`
2. `npm install` or `cnpm install` if needed.
3. [`npm run bd`] or [`npm run build` then `npm run deploy`]
4. Build and run `android android-godeye-sample`

## Deploy

1. Exec `./gradlew generateChangelog -PchangelogVersion=3.1.12` to update CHANGELOG.md, 添加或删除模块需要更新README.md和[wiki](https://github.com/Kyson/AndroidGodEye/wiki)
2. 改动合并到master,并打版本号命名的tag(本地测试会使用gradle.properties文件中的版本号)
3. PUSH,查看编译状态:[AndroidGodEye-travis-ci](https://travis-ci.org/Kyson/AndroidGodEye/builds)
2. Merge to master branch then tag with version name then push.(本地测试会使用gradle.properties文件中的版本号)
3. 查看编译状态:[AndroidGodEye-travis-ci](https://travis-ci.org/Kyson/AndroidGodEye/builds)

## Changelog
## Code

Based on [keepachangelog](https://keepachangelog.com/en/1.0.0/)
Model数据类,包含Config类型

```text
* Added for new features.
* Changed for changes in existing functionality.
* Deprecated for soon-to-be removed features.
* Removed for now removed features.
* Fixed for any bug fixes.
* Security in case of vulnerabilities.
```
1. 必须实现Serializable接口
2. 必须@Keep
3. 内容必须可序列化
4. 必须添加toString方法

## Ignore
## Changelog

### Jcenter upload,不需要手动调用
Based on [keepachangelog](https://keepachangelog.com/en/1.0.0/)

bintrayKey: [https://bintray.com/profile/edit](https://bintray.com/profile/edit) API Key
- Added for new features.
- Changed for changes in existing functionality.
- Deprecated for soon-to-be removed features.
- Removed for now removed features.
- Fixed for any bug fixes.
- Security in case of vulnerabilities.

./gradlew clean build bintrayUpload -PbintrayUser=kyson -PbintrayKey=BINTRAY_KEY -PdryRun=false
2 changes: 2 additions & 0 deletions gradle/gradle-jcenter-push.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//bintrayKey: [https://bintray.com/profile/edit](https://bintray.com/profile/edit) API Key

apply plugin: 'com.novoda.bintray-release'

publish {
Expand Down

0 comments on commit f267c42

Please sign in to comment.