Skip to content

Commit

Permalink
fix: gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dvgamerr committed Mar 2, 2024
1 parent 028e1c2 commit 8e72585
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 217 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy GitHub Pages

Expand Down Expand Up @@ -33,22 +28,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3

# Deployment job
Expand Down
192 changes: 93 additions & 99 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,99 +1,93 @@
<div align="center">
<h1>Hoyolab a Daily Check-in for Hoyoverse Game</h1>
<p>
<a href="https://github.com/dvgamerr/go-hoyolab/actions/workflows/build.yml">
<img src="https://img.shields.io/github/actions/workflow/status/dvgamerr/go-hoyolab/build.yml?label=Build&amp;style=flat-square" alt="GitHub Build Action Status">
</a>
<a href="https://github.com/dvgamerr/go-hoyolab/actions/workflows/codeql.yml">
<img src="https://img.shields.io/github/actions/workflow/status/dvgamerr/go-hoyolab/codeql.yml?label=CodeQL&amp;style=flat-square" alt="GitHub Build Action Status">
</a>
<a href="https://github.com/dvgamerr/go-hoyolab/actions/workflows/review.yml">
<img src="https://img.shields.io/github/actions/workflow/status/dvgamerr/go-hoyolab/review.yml?label=Dependency&amp;style=flat-square" alt="GitHub Build Action Status">
</a>
<a href="https://goreportcard.com/report/dvgamerr/go-hoyolab">
<img src="https://goreportcard.com/badge/dvgamerr/go-hoyolab?style=flat-square">
</a>
<img src="https://img.shields.io/tokei/lines/github/dvgamerr/go-kooky?style=flat-square">
<br>
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square">
<a href="LICENSE.md">
<img src="https://img.shields.io/github/license/dvgamerr/go-hoyolab?style=flat-square" alt="LICENSE">
</a>
<a href="https://github.com/dvgamerr/go-hoyolab/releases/latest">
<img src="https://img.shields.io/github/release-date/dvgamerr/go-hoyolab?style=flat-square">
</a>
</p>
<p><a href="./README.md">English</a> | <a href="./README_TH.md">ภาษาไทย</a></p>
<p>Genshin Impact, Honkai StarRail, Honkai Impact 3. You only need to run it once, then it will continue to run forever.</p>
</div>

![example.png](./docs/example-logs.png)

![checkin.png](./docs/checkin.png)


## Features
- [x] update new version from github automatic.
- [x] Claims checkin daily with chrome browser only.
- [x] Multiple chrome profiles for multiple game accounts.
- [X] command line `hoyolab` support all os.
- [x] Line Notify support after checkin.

![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/0cbdb857-f866-4813-8420-03c2ce73688e)

![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/133f8fcd-d301-471f-92a7-6e88874ff851)

- [x] Discord Notify support after checkin.

![checkin.png](./docs/example-notify.png)


![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/1c75dc54-e787-4831-94a0-047f1aef7e1a)

- [x] Genshin Impact claims support.
- [x] Honkai StarRail claims support.
- [x] Honkai Impact 3 claims support.

### Todo
- [ ] Zenless Zone Zero claims support.
- [ ] docker container support.
- [ ] support session with all browser.
- [ ] install schedule task with windows-os automatic.

---

## How to use
1. Open chrome browser open [https://www.hoyolab.com/home](https://www.hoyolab.com/home)
2. Login user genshin account for daily cliams.
3. run `hoyolab.exe`.
4. If found Error please craete issues in [https://github.com/dvgamerr/go-hoyolab/issues](https://github.com/dvgamerr/go-hoyolab/issues)
5. If Notify message after CheckIn use [LINE-Notify](https://notify-bot.line.me/my/)
6. log in that and `Generate token` in below page after that copy token paste in `hoyolab.yaml` in `notify.token` at `XXXXXX` same image:

![image](./docs/example-token.png)

7. If you don't play some game add `#` in first char in line scope, e.g. i don;t play honkai impact

![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/7ab44d88-31cf-4919-ab5a-e7c4da5beedf)



### Windows
### Solution If Turn On computer 24*7
- use `Task Scheduler` and `Create Basic Task`
- select `Daily` next time at `5 am`.
- after click Next select `Start a program`, Next and browse `hoyolab.exe`

### Solution If starup computer
- create shortcut from `hoyolab.exe`
- copy shortcut to `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup`

### MaOcOS & Linux
- use `crontab` for automatic run.

## Prerequisites
- Have login to mihoyo's website at chrome browser (A login for a year is enough)

## If you need help You can join Discord.

[![Join Us?](https://discordapp.com/api/guilds/475720106471849996/widget.png?style=banner2)](https://discord.gg/QDccF497Mw)
<div align="center">
<h1>Hoyolab a Daily Check-in for Hoyoverse Game</h1>
<p>
<a href="https://github.com/dvgamerr/go-hoyolab/actions/workflows/build.yml">
<img src="https://img.shields.io/github/actions/workflow/status/dvgamerr/go-hoyolab/build.yml?label=Build&amp;style=flat-square" alt="GitHub Build Action Status">
</a>
<img src="https://img.shields.io/github/actions/workflow/status/dvgamerr/go-hoyolab/review.yml?label=Dependency&amp;style=flat-square" alt="GitHub Build Action Status">
<a href="https://goreportcard.com/report/dvgamerr/go-hoyolab">
<img src="https://goreportcard.com/badge/dvgamerr/go-hoyolab?style=flat-square">
</a>
<br>
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square">
<a href="LICENSE.md">
<img src="https://img.shields.io/github/license/dvgamerr/go-hoyolab?style=flat-square" alt="LICENSE">
</a>
<a href="https://github.com/dvgamerr/go-hoyolab/releases/latest">
<img src="https://img.shields.io/github/release-date/dvgamerr/go-hoyolab?style=flat-square">
</a>
</p>
<p><a href="./README.md">English</a> | <a href="./README_TH.md">ภาษาไทย</a></p>
<p>Genshin Impact, Honkai StarRail, Honkai Impact 3. You only need to run it once, then it will continue to run forever.</p>
</div>

![example.png](./docs/example-logs.png)

![checkin.png](./docs/checkin.png)


## Features
- [x] update new version from github automatic.
- [x] Claims checkin daily with chrome browser only.
- [x] Multiple chrome profiles for multiple game accounts.
- [X] command line `hoyolab` support all os.
- [x] Line Notify support after checkin.

![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/0cbdb857-f866-4813-8420-03c2ce73688e)

![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/133f8fcd-d301-471f-92a7-6e88874ff851)

- [x] Discord Notify support after checkin.

![checkin.png](./docs/example-notify.png)


![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/1c75dc54-e787-4831-94a0-047f1aef7e1a)

- [x] Genshin Impact claims support.
- [x] Honkai StarRail claims support.
- [x] Honkai Impact 3 claims support.

### Todo
- [ ] Zenless Zone Zero claims support.
- [ ] docker container support.
- [ ] support session with all browser.
- [ ] install schedule task with windows-os automatic.

---

## How to use
1. Open chrome browser open [https://www.hoyolab.com/home](https://www.hoyolab.com/home)
2. Login user genshin account for daily cliams.
3. run `hoyolab.exe`.
4. If found Error please craete issues in [https://github.com/dvgamerr/go-hoyolab/issues](https://github.com/dvgamerr/go-hoyolab/issues)
5. If Notify message after CheckIn use [LINE-Notify](https://notify-bot.line.me/my/)
6. log in that and `Generate token` in below page after that copy token paste in `hoyolab.yaml` in `notify.token` at `XXXXXX` same image:

![image](./docs/example-token.png)

7. If you don't play some game add `#` in first char in line scope, e.g. i don;t play honkai impact

![image](https://github.com/dvgamerr/go-hoyolab/assets/10203425/7ab44d88-31cf-4919-ab5a-e7c4da5beedf)



### Windows
### Solution If Turn On computer 24*7
- use `Task Scheduler` and `Create Basic Task`
- select `Daily` next time at `5 am`.
- after click Next select `Start a program`, Next and browse `hoyolab.exe`

### Solution If starup computer
- create shortcut from `hoyolab.exe`
- copy shortcut to `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup`

### MaOcOS & Linux
- use `crontab` for automatic run.

## Prerequisites
- Have login to mihoyo's website at chrome browser (A login for a year is enough)

## If you need help You can join Discord.

[![Join Us?](https://discordapp.com/api/guilds/475720106471849996/widget.png?style=banner2)](https://discord.gg/QDccF497Mw)
Loading

0 comments on commit 8e72585

Please sign in to comment.