Skip to content

Commit

Permalink
dokka release workflow 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cometj03 committed Feb 19, 2024
1 parent 03e93a8 commit 0da0e83
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: release

on:
push:
branches: [ master ]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- run: ./gradlew dokkaHtml

- name: Deploy docs to website
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-page
FOLDER: yls/build/dokka/html/
TARGET_FOLDER: docs/0.x/
6 changes: 4 additions & 2 deletions yls/src/main/kotlin/com/yourssu/logging/system/YLS.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import java.util.Date
class YLS private constructor() {

/**
* 실질적인 로깅을 수행하는 클래스. [YLS.init]으로 Logger 객체를 등록합니다.
* 실질적인 로깅을 수행하는 클래스. [YLS.init]으로 Logger 객체를 등록할 수 있습니다.
*
* 기본적으로 10개의 로그 이벤트를 모아두고 한번에 처리하는 로직이 구현되어 있습니다.
*/
Expand Down Expand Up @@ -59,6 +59,8 @@ class YLS private constructor() {
}

/**
* 설정된 url로 로그 데이터를
*
* [RemoteLoggingWorker]를 사용하여 백그라운드에서 로그 이벤트를 처리합니다.
*/
open class RemoteLogger(private val url: String, context: Context) : Logger() {
Expand Down Expand Up @@ -102,10 +104,10 @@ class YLS private constructor() {
/**
* 기본적인 로그 메서드입니다.
*
* @param events 이벤트 key-value 쌍
* ```kotlin
* YLS.log("event" to "click", "screen" to "mypage")
* ```
* @param events 이벤트 key-value 쌍
*/
fun log(vararg events: Pair<String, Any>) {
if (!::logger.isInitialized) {
Expand Down

0 comments on commit 0da0e83

Please sign in to comment.