1. WakaTime 사이트 설정
- WakaTime 사이트에 접속한다
- 깃허브 계정을 사용하여 로그인을 한다

- 계정 설정에서 API Key를 발급받는다

- API의 원활한 사용을 위해서 Edit Profile 메뉴에서 공개 설정을 한다

2. VSCode 설정
- VSCode에서 WakaTime 플러그인을 설치한다

- VSCode에서 API 키를 등록한다


- 코딩 시간이 자동적으로 계산된다

3. Github Profile 설정
1. Github Token 생성
- Gihub의 계정 설정의 Developer settings에 접속한다

- Personal access tokens > Token (classic) 메뉴로 들어간다

- Generate new token > Generate new token (classic) 버튼을 클릭한다

- repo, user 권한이 있는 토큰을 생성한다

- 발행된 토큰을 저장해둔다

2. 계정명 저장소 설정
- Github의 계정명 저장소의 설정에 접속한다

- Security > Secrets and variables > Actions 메뉴에 접속한다

- New respository secret 버튼을 클릭한다

GH_TOKEN
과WAKATIME_API_KEY
키를 등록한다


- README.md에 다음의 내용을 추가한다
<!--START_SECTION:waka--> <!--END_SECTION:waka-->
- .github/workflows/update-stats.yml 파일을 생성한 뒤, 다음 내용을 작성한다
name: Waka Readme on: schedule: # Runs at 12am IST - cron: '30 18 * * *' workflow_dispatch: jobs: update-readme: name: Update this repo's README runs-on: ubuntu-latest steps: - uses: anmol098/waka-readme-stats@master with: WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} GH_TOKEN: ${{ secrets.GH_TOKEN }}
- Actions > Wake Readme에서
Run workflow
로 실행한다

- 정상적으로 실행이 완료되면 깃허브 프로필이 다음과 같이 표시된다


- 빌드시 다음과 같은 에러가 발생하면, 일정 시간이 경과한 이후에 실행해야 한다
