Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from JunzhouLiu:main #5

Open
wants to merge 503 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
503 commits
Select commit Hold shift + click to select a range
495e1d4
增加每日漫画自动阅读1章节。 (#290)
MoshiCoCo Jan 13, 2021
52c54b5
测试类
MoshiCoCo Jan 13, 2021
933e9fa
移除旧的图片文件。
MoshiCoCo Jan 13, 2021
d734b39
发布v1.3.0
MoshiCoCo Jan 13, 2021
f609df5
更正文档错误
MoshiCoCo Jan 14, 2021
25a78a9
增加docker错误提示。
MoshiCoCo Jan 14, 2021
c7ecc13
发布v1.3.1
MoshiCoCo Jan 14, 2021
44b73b9
兼容旧配置文件。"skipDailyTask": 0/1 -> "skipDailyTask": false/true
MoshiCoCo Jan 15, 2021
d7e2e53
调整部分代码
MoshiCoCo Jan 15, 2021
5887c69
发布v1.3.2
MoshiCoCo Jan 15, 2021
4075a3d
HttpUtil.doPost方法支持JsonObject。
MoshiCoCo Jan 16, 2021
b248914
新功能,默认送出即将过期的礼物。
Michael1015198808 Jan 16, 2021
f1b945a
新功能,默认送出即将过期的礼物。 (#301)
MoshiCoCo Jan 16, 2021
32108fe
发布v1.3.3
MoshiCoCo Jan 16, 2021
cc7b8fc
修复送辣条时报空指针的问题 (#302)
JellyBlack Jan 18, 2021
400a4d3
fixed post request
MoshiCoCo Jan 18, 2021
010d6d2
server酱推送失败后自动重试3次
MoshiCoCo Jan 26, 2021
bada532
发布v1.3.4
MoshiCoCo Jan 26, 2021
73952b5
银瓜子不足时,不进行兑换硬币
MoshiCoCo Jan 29, 2021
765f452
发布v1.3.5
MoshiCoCo Jan 30, 2021
dde44b2
功能优化
MoshiCoCo Jan 31, 2021
7718cb6
发布v1.3.6
MoshiCoCo Jan 31, 2021
8c8c921
增加Telegram推送支持 (#308)
riverO0o Feb 3, 2021
400086d
Update config.json
MoshiCoCo Feb 5, 2021
ecf41e6
Serverchan增加Turbo通道API (#327)
msylgj Feb 9, 2021
b1f3a2b
1. 对报错提示进行优化。(账号进小黑屋也会导致412)
MoshiCoCo Feb 9, 2021
57f5e75
发布v1.3.7
MoshiCoCo Feb 9, 2021
6279459
修复正常账号下412和投币403的问题 (#345)
XanderYe Feb 19, 2021
8a75f25
支持Turbo版本server酱(间接支持钉钉,飞书等推送渠道)
MoshiCoCo Feb 19, 2021
2ec0893
fix md style (#353)
imba-tjd Feb 21, 2021
608628e
发布v1.3.8
MoshiCoCo Mar 19, 2021
65727a7
新增钉钉推送&重构推送模型&判断是否是JSON (#386)
Mar 22, 2021
34ac02a
增加NPE判断 (#388)
Mar 23, 2021
d223f92
fix: 推送成功状态判断问题 (#391)
Mar 24, 2021
0f7ea4c
Update ServerPush.java (#396)
Mar 26, 2021
b5a136b
清理老代码。
MoshiCoCo Mar 26, 2021
b3210f8
remove debug json
MoshiCoCo Mar 28, 2021
20ab351
优化了一些代码
MoshiCoCo Mar 28, 2021
0ab02d8
feat: check push status (#400)
Mar 28, 2021
de8dbe0
增加server酱推送次数超限无法推送的提示。
MoshiCoCo Mar 28, 2021
9157dad
新增PushPlus推送通道 (#401)
Mar 28, 2021
a3f89d2
优化HttpUtil
MoshiCoCo Mar 28, 2021
89d49d9
整理代码
MoshiCoCo Mar 28, 2021
3f6b84b
feat: 每日任务执行顺序增加随机性 (#402)
Mar 28, 2021
ff4d7b1
FIX:超链接跳转问题 (#403)
Mar 28, 2021
0a020bf
优化server酱code码的判断
MoshiCoCo Mar 28, 2021
302e2dd
fix: 推送内容不存在 (#413)
Apr 4, 2021
5b94eb9
Update README.md (#410)
MakDon Apr 4, 2021
4e25369
add scriptcat support
MoshiCoCo Apr 16, 2021
012cada
qq group
MoshiCoCo Apr 18, 2021
7432144
add group
MoshiCoCo Apr 20, 2021
83111ca
update reademe
MoshiCoCo Apr 29, 2021
5ff37f1
update
MoshiCoCo Apr 29, 2021
54e54e2
v1.3.9
MoshiCoCo Apr 29, 2021
3abb845
更新图标
MoshiCoCo Apr 29, 2021
57c5a87
feat: 腾讯云函数支持
Apr 29, 2021
0bdf64b
Merge pull request #1 from itning/tencent_serverless
MoshiCoCo Apr 29, 2021
be7ba5f
feat: 日志使用JUL
Apr 30, 2021
8a17603
feat: 取配置中心配置
Apr 30, 2021
008dc8b
Merge pull request #2 from itning/jul
Apr 30, 2021
6ece24a
Merge pull request #3 from itning/config
Apr 30, 2021
f29ab54
chore: README
Apr 30, 2021
9945233
chore: README
Apr 30, 2021
10b6400
chore: README
Apr 30, 2021
20e48d6
chore: README
Apr 30, 2021
55506f4
chore: README
Apr 30, 2021
ddb1b80
chore: README
Apr 30, 2021
d5d2b96
chore: README
Apr 30, 2021
bd0c4f6
chore: README
Apr 30, 2021
6df621d
chore: README
Apr 30, 2021
316c110
chore: README
Apr 30, 2021
89470e2
feat: 日志取消打印级别
May 2, 2021
f4e0d63
feat: 日志根据标记使用不同日志实现
May 2, 2021
b307d0a
build: 1.4.0
May 2, 2021
e5766e1
build: 1.4.0
May 2, 2021
4443602
Merge pull request #4 from JunzhouLiu/scf
May 2, 2021
9d24cb3
fix: NPE
May 3, 2021
fab5e5b
fix: NPE
May 4, 2021
cf95a87
贡献者扶持。
MoshiCoCo May 5, 2021
22f527e
调整日志等级。
MoshiCoCo May 5, 2021
9abc3b9
发布v1.4.1
MoshiCoCo May 5, 2021
2209552
feat: StaticLoggerBinder
May 5, 2021
a036671
Merge remote-tracking branch 'origin/main'
May 5, 2021
f14f150
发布v1.4.1
MoshiCoCo May 6, 2021
e67a16a
feat: http client log level
May 6, 2021
da14854
Merge remote-tracking branch 'origin/main'
May 6, 2021
52b2486
完善云函数文档
MoshiCoCo May 6, 2021
f864d23
完善云函数文档
MoshiCoCo May 6, 2021
6fbd53b
发布v1.4.2
MoshiCoCo May 6, 2021
5081109
更新文档
MoshiCoCo May 6, 2021
4dd91e3
test
MoshiCoCo May 6, 2021
a60ffa4
update reademe
MoshiCoCo May 6, 2021
2dbbdd8
修改配置加载逻辑 (#441)
GungnirLaevatain May 7, 2021
210b914
fix:scf jar error
MoshiCoCo May 7, 2021
9d6ec4f
Merge branch 'main' of https://github.com/JunzhouLiu/BILIBILI-HELPER
MoshiCoCo May 7, 2021
76f4e4f
发布v1.4.3
MoshiCoCo May 7, 2021
2d07187
shade replace maven-assembly-plugin
MoshiCoCo May 7, 2021
bc0e829
优化投币逻辑
MoshiCoCo May 8, 2021
d51006f
pushplus显示格式问题 (#442)
jiuntian May 8, 2021
427532e
添加企业微信推送支持 (#443)
limingcisco May 8, 2021
26aa3a9
add serverless.yml
MoshiCoCo May 9, 2021
5e4682f
fixed actions cpnfig
MoshiCoCo May 11, 2021
0ecaadf
缩小jar包体积
MoshiCoCo May 11, 2021
a411d2e
编译检查
MoshiCoCo May 11, 2021
8304963
发布v1.4.4
MoshiCoCo May 11, 2021
aca65e8
调整actions工作流
MoshiCoCo May 11, 2021
0fed35d
增加一周硬币统计功能。
MoshiCoCo May 12, 2021
d0e456a
修改scf文档
MoshiCoCo May 17, 2021
2cd2e9d
修复任务添加时抛出的异常。
MoshiCoCo May 19, 2021
91f67d5
发布v1.4.5
MoshiCoCo May 19, 2021
2d9daf5
优化代码结构 (#452)
myellow May 20, 2021
7565404
更新文档
MoshiCoCo May 20, 2021
5be4add
发布v1.0.0
MoshiCoCo May 20, 2021
caa8a91
[ImgBot] Optimize images (#454)
imgbot[bot] May 20, 2021
6b2c0d9
优化scf日志输出
MoshiCoCo May 20, 2021
e677c6a
Merge remote-tracking branch 'origin/main'
MoshiCoCo May 20, 2021
bdef979
优化scf控制台日志输出。
MoshiCoCo May 20, 2021
6ea2897
优化scf控制台日志输出。
MoshiCoCo May 20, 2021
5c66a93
发布v1.0.1
MoshiCoCo May 20, 2021
271c0b9
feat: 对JSON异常友好提示 (#459)
May 26, 2021
cbcb0fe
telegrambottoken 每个token里面有个 : 示范没引号所以报错的,可以更新下文档 (#460)
insoxin May 26, 2021
05eb344
update docs
MoshiCoCo May 27, 2021
a9fc35f
update docs img
MoshiCoCo May 27, 2021
7a1df5d
支持执行时间间隔可自定义配置
MoshiCoCo May 27, 2021
2fa85af
发布v1.0.2
MoshiCoCo May 27, 2021
45f2743
[ImgBot] Optimize images (#462)
imgbot[bot] May 27, 2021
c0e432b
完善推送未配置正确的ftKey和chatId时的日志提示
GungnirLaevatain May 31, 2021
6ef805d
警告改为信息级别
Jun 1, 2021
a8ad607
Merge pull request #464 from GungnirLaevatain/patch-1
Jun 1, 2021
e8aabba
修复因瓜子兑换异常导致的任务中断
MoshiCoCo Jun 13, 2021
4cf28e1
非功能性更新
MoshiCoCo Aug 6, 2021
cb69b43
chore: README图标
Aug 30, 2021
51a529b
refactor: 移除未使用的常量
Aug 30, 2021
0576f2e
fix: error
Sep 2, 2021
53ac037
精简和规范推送日志 (#8)
zhangsean Sep 2, 2021
2f3e0d3
更新腾讯云函数文档。
MoshiCoCo Sep 6, 2021
f9e459a
优化配置文件加载。
MoshiCoCo Sep 8, 2021
bc81e47
feat: 一个PUSH
Sep 11, 2021
ad28e60
refactor: 改个方法名
Sep 11, 2021
5ec219e
v2重构 配置读取重构,调整配置文件结构
MoshiCoCo Sep 11, 2021
29d9d05
feat: SCU
Sep 12, 2021
43d9307
rename httputil->httputils
MoshiCoCo Sep 12, 2021
e7fde75
更新使用文档。
MoshiCoCo Sep 12, 2021
3345aff
发布v2.0.0
MoshiCoCo Sep 18, 2021
129ed97
修改云函数说明文档
MoshiCoCo Sep 18, 2021
9505683
修复云函数执行错误。
MoshiCoCo Sep 18, 2021
f09a86e
v2.0.0-pre (#26)
MoshiCoCo Sep 19, 2021
e31778c
fixed serverchan log wrap
MoshiCoCo Sep 19, 2021
24e6fdf
fixed serverless test
MoshiCoCo Sep 19, 2021
cbfb0e0
fixed SC spell
MoshiCoCo Sep 19, 2021
a52067a
发布v2.0.1
MoshiCoCo Sep 19, 2021
8754068
feat: telegram推送代理 (#27)
Sep 19, 2021
7213ec3
更新推送代理的文档
MoshiCoCo Sep 19, 2021
a34376e
fix: 代理错误
Sep 19, 2021
d2411ff
feat: 支持密钥型钉钉推送 (#28)
Sep 19, 2021
9eb4e4e
feat: TG推送支持自定义URL
Sep 19, 2021
ddb85e3
feat: Dockerfile
Sep 19, 2021
e17b695
feat: 推送重试重构&&推送分批
Sep 20, 2021
e784126
发布v2.0.3
MoshiCoCo Sep 20, 2021
b84fedd
fixed calculateUpgradeDays fail
MoshiCoCo Sep 20, 2021
a7f7961
fixed match game requests param
MoshiCoCo Sep 20, 2021
b332a2e
fixed log record issues
MoshiCoCo Sep 20, 2021
c5ddb9d
coin add use aid
MoshiCoCo Sep 20, 2021
6705503
增加银瓜子兑换硬币开关
MoshiCoCo Sep 20, 2021
9b841ba
完善文档。
MoshiCoCo Sep 20, 2021
bb2e9f0
配置文件表格完善 (#33)
EVAyo Sep 20, 2021
6b6a553
format readme table
MoshiCoCo Sep 20, 2021
39cf556
released v2.0.3
MoshiCoCo Sep 20, 2021
d3864b3
chore: readme
Sep 21, 2021
596f001
fix: 推送问题
Sep 21, 2021
c33ee8a
released v2.0.4
MoshiCoCo Sep 21, 2021
acbbcd2
test: One Test More Bugs
Sep 21, 2021
37aa346
released v2.0.5
MoshiCoCo Sep 21, 2021
b80442c
feat : 企业微信应用推送
MoshiCoCo Sep 22, 2021
535df80
released v2.0.6
MoshiCoCo Sep 22, 2021
a95f95d
更新云函数函数测试模版。
MoshiCoCo Sep 22, 2021
e8e635b
更新文档
MoshiCoCo Sep 22, 2021
e0df4ee
添加企业微信应用图文推送选择
Sep 23, 2021
736a172
更新文档
Sep 23, 2021
d9e09cf
去掉多余日志
Sep 23, 2021
59e1fa6
Merge pull request #35 from graytoowolf/main
Sep 23, 2021
f1db5b1
fix: 企业微信消息推送太长被截断
Sep 23, 2021
146d69d
feat: 任务运行错误提示
Sep 23, 2021
dbf42ce
feat: 修复NPE&&日志级别调整
Sep 23, 2021
a65c0a4
fix: server酱推送结果判断
Sep 23, 2021
936391f
合併远端追踪分支 'JunzhouLiu/main' 到 main
Sep 23, 2021
397cb73
fixed push error
MoshiCoCo Sep 23, 2021
96a0d27
released v2.0.7
MoshiCoCo Sep 23, 2021
539f2bc
合併远端追踪分支 'JunzhouLiu/main' 到 main
Sep 24, 2021
3035a1d
企业微信图文推送不分割文本
Sep 24, 2021
b488c6f
Merge pull request #36 from graytoowolf/main
Sep 24, 2021
2f4e1a1
feat: GitLab CI/CD部署 (#37)
HollowMan6 Sep 24, 2021
839ee4d
fixed default charge day
MoshiCoCo Sep 24, 2021
2fb59c7
优化赛事预测和领取大会员福利的逻辑。
MoshiCoCo Sep 24, 2021
90072f4
fixed serverless default charge day
MoshiCoCo Sep 24, 2021
59af3c2
released v2.0.8
MoshiCoCo Sep 24, 2021
aef6529
fix: 日志文件乱码
Sep 27, 2021
294b0d9
精简日志,默认不显示随机暂停
zhangsean Sep 27, 2021
43db600
精简日志,不存在文件调成debug
zhangsean Sep 27, 2021
3d9caf6
Create dependabot.yml
Sep 28, 2021
23f40e1
Bump gson from 2.8.7 to 2.8.8
dependabot[bot] Sep 28, 2021
27761bd
Bump jcl-over-slf4j from 1.7.30 to 1.7.32
dependabot[bot] Sep 28, 2021
6461c4c
Bump junit-jupiter-api from 5.8.0 to 5.8.1
dependabot[bot] Sep 28, 2021
c880078
Bump commons-lang3 from 3.11 to 3.12.0
dependabot[bot] Sep 28, 2021
687869a
Merge pull request #45 from JunzhouLiu/dependabot/maven/com.google.co…
Sep 28, 2021
ffe0d55
Merge pull request #46 from JunzhouLiu/dependabot/maven/org.slf4j-jcl…
Sep 28, 2021
9c429b0
Merge pull request #47 from JunzhouLiu/dependabot/maven/org.junit.jup…
Sep 28, 2021
8b31188
Merge pull request #48 from JunzhouLiu/dependabot/maven/org.apache.co…
Sep 28, 2021
292713d
Merge pull request #44 from zhangsean/patch
Sep 28, 2021
533cce5
released v2.0.9
MoshiCoCo Sep 28, 2021
e506aa0
refactor code
MoshiCoCo Sep 28, 2021
b59dba8
chore: readme
Sep 29, 2021
3169119
chore: readme
Sep 29, 2021
a54ad43
fix: SSL握手问题
Sep 29, 2021
3963d90
build: 2.0.10
Sep 29, 2021
05eb9d1
build(deps): bump guava-retrying3 from 3.0.0 to 3.0.1
dependabot[bot] Sep 29, 2021
01c01c5
Merge pull request #55 from JunzhouLiu/dependabot/maven/io.github.itn…
Sep 30, 2021
ffbe975
feat: 修改okhttp为apache httpclient
Sep 30, 2021
b918b3a
build: 2.0.11
Sep 30, 2021
c6194ad
增加青龙面板的适配文档。
MoshiCoCo Sep 30, 2021
b7e7474
refactor code
MoshiCoCo Sep 30, 2021
f728b96
Merge remote-tracking branch 'origin/main'
MoshiCoCo Sep 30, 2021
a1f4d7b
dependabot update rate change monthly
MoshiCoCo Sep 30, 2021
88eef64
released v2.1.0
MoshiCoCo Sep 30, 2021
5b0761e
remove old image
MoshiCoCo Sep 30, 2021
52a15b2
[ImgBot] Optimize images (#58)
imgbot[bot] Sep 30, 2021
12ee7c4
合併远端追踪分支 'JunzhouLiu/main' 到 test
Sep 30, 2021
336e9bf
文档更新
Sep 30, 2021
fb9f4ba
格式更新时间
Sep 30, 2021
a3b52f3
统一日志输出
Sep 30, 2021
7fb0b41
Merge pull request #61
MoshiCoCo Sep 30, 2021
db59450
reformat code
MoshiCoCo Sep 30, 2021
1184067
fixed readme pic display
MoshiCoCo Oct 1, 2021
2a3519b
青龙面板一键脚本 (#64)
graytoowolf Oct 1, 2021
897e2d2
update images
MoshiCoCo Oct 1, 2021
7b36876
Merge remote-tracking branch 'origin/main'
MoshiCoCo Oct 1, 2021
37c8395
添加判断jar文件是否存在,遍历配置文件 (#67)
graytoowolf Oct 1, 2021
8e4fb48
格式化代码 (#68)
graytoowolf Oct 1, 2021
bc2a0e4
修改配置文件目录到“/ql/config/”下 (#72)
graytoowolf Oct 2, 2021
2eb09f3
fixed duplicate log
MoshiCoCo Oct 2, 2021
abf1166
build(deps): bump guava-retrying3 from 3.0.0 to 3.0.1 (#57)
dependabot[bot] Oct 2, 2021
20b24c5
调整日志全类名缩写。
MoshiCoCo Oct 2, 2021
c085749
Cache and More Fault Tolerance (#74)
HollowMan6 Oct 2, 2021
4aca2a9
update README.md
MoshiCoCo Oct 2, 2021
b0b4337
update docs
MoshiCoCo Oct 7, 2021
48dbe86
releases v2.1.1
MoshiCoCo Oct 7, 2021
e99f41f
fixed the daily video sharing prompt csrf verification failure
MoshiCoCo Oct 8, 2021
5039e5b
Add technology partitions to random partitions, and cancel random coi…
MoshiCoCo Oct 8, 2021
3d4a1e3
released v2.1.2
MoshiCoCo Oct 8, 2021
5561002
更新readme免责。
MoshiCoCo Oct 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug报告 about: Create a report to help us improve title: ''
labels: ''
assignees: ''

---

---
name: "[Bug Report]BUG反馈"
about: 将你所遇到的BUG反馈给我们 title: "[BUG]"
labels: ''
assignees: ''

---

### 错误描述

> 你所遇到的错误是怎么样的?

### 错误提示和日志内容

> 最好提供错误格式和日志,如果不熟悉编程语言,请提供完整的日志。

### 使用的版本信息

> 提供出现这个问题的程序版本号,或着git hash

### 使用环境

> 是在什么环境下出现的这个问题,Linux还是windows或者其他
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request about: Suggest an idea for this project title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
85 changes: 85 additions & 0 deletions .github/workflows/auto_package_bilibili-helper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Build Release

on:
push:
branches:
- main
paths:
- "src/main/resources/release.json"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
# 从release.json 读取相关信息
- name: Read tag_main
id: tag_main
uses: ashley-taylor/[email protected]
with:
path: ./src/main/resources/release.json
property: tag_main

- name: Read tag_latest
id: tag_latest
uses: ashley-taylor/[email protected]
with:
path: ./src/main/resources/release.json
property: tag_latest

- name: Read description
id: description
uses: juliangruber/read-file-action@v1
with:
path: ./src/main/resources/release.info
trim: false

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Package with Maven
run: mvn -B package --file pom.xml -Dmaven.test.skip=true

- name: ZIP files
run: |
mv -f ./target/BILIBILI-HELPER-${{steps.tag_main.outputs.value}}.jar BILIBILI-HELPER-v${{steps.tag_latest.outputs.value}}.jar
zip BILIBILI-HELPER\ v${{steps.tag_latest.outputs.value}}.zip BILIBILI-HELPER-v${{steps.tag_latest.outputs.value}}.jar
cp ./src/main/resources/config.json ./
zip BILIBILI-HELPER\ v${{steps.tag_latest.outputs.value}}.zip config.json
zip BILIBILI-HELPER\ v${{steps.tag_latest.outputs.value}}.zip -r docs/
zip BILIBILI-HELPER\ v${{steps.tag_latest.outputs.value}}.zip LICENSE
zip BILIBILI-HELPER\ v${{steps.tag_latest.outputs.value}}.zip README.md

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{steps.tag_latest.outputs.value}}
release_name: BILIBILI-HELPER-v${{steps.tag_latest.outputs.value}}
body: |
${{steps.description.outputs.content}}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./BILIBILI-HELPER v${{steps.tag_latest.outputs.value}}.zip
asset_name: BILIBILI-HELPER-v${{steps.tag_latest.outputs.value}}.zip
asset_content_type: application/zip
31 changes: 31 additions & 0 deletions .github/workflows/compile_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: compile

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: compile with Maven
run: mvn -B compile --file pom.xml
32 changes: 0 additions & 32 deletions .github/workflows/maven.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Compiled class file
*.class
.DS_Store

# Log file
*.log
Expand All @@ -20,8 +21,12 @@
*.rar

# IDEA
*.iml
.idea/
*.ipr
*.iws

.idea/workspace.xml
/target/

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
109 changes: 109 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
image: ubuntu:latest

variables:
REPO_SOURCE: "JunzhouLiu/BILIBILI-HELPER-PRE" # Expect to be at GitHub
PACK_NAME: "BILIBILI-HELPER"
VERSION: "" # Tag names from https://github.com/JunzhouLiu/BILIBILI-HELPER-PRE/tags or "latest" to use the latest commit
USE_MAVEN: "" # "TRUE" to force packing using maven when running
BUILD_BRANCH: "" # Empty to be the default branch
CONFIG: ""
# It's not recommended to change the following variables' values
MAVEN_OPTS: "-Dmaven.test.skip=true -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
LANGUAGE: "zh_CN:zh"
LANG: "zh_CN.UTF-8"
DEBIAN_FRONTEND: "noninteractive"

cache:
# Keep cache across branch
key: "$CI_JOB_NAME"
paths:
- .m2/repository
- .apt
- repo_backup
- jar_backup

stages:
- run

before_script:
# CONFIG is necessary
- if [ -z "${CONFIG}" ]; then
echo "Missing variable 'CONFIG'.";
exit 1;
fi

run:
stage: run
script:
# Configure apt caching
- export APT_DIR=$CI_PROJECT_DIR/.apt && export APT_STATE_LISTS=$APT_DIR/lists && export APT_CACHE_ARCHIVES=$APT_DIR/archives
- printf "dir::state::lists ${APT_STATE_LISTS};\ndir::cache::archives ${APT_CACHE_ARCHIVES};\n" > /etc/apt/apt.conf
- mkdir -p "${APT_STATE_LISTS}/partial" && mkdir -p "${APT_CACHE_ARCHIVES}/partial"
# Install dependencies
- apt-get update && apt-get install openjdk-8-jdk wget locales unzip -y
# Generate locale to resolve the mistaken Chinese code when pushing messages
- locale-gen zh_CN.UTF-8
# Get the latest version number if not specify VERSION, if get failed use latest
- if [ -z "${VERSION}" ]; then
if wget -O "/tmp/version" "https://api.github.com/repos/${REPO_SOURCE}/releases/latest"; then
VERSION=`cat /tmp/version | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`;
else
VERSION="latest";
fi;
fi
- echo "Package ${PACK_NAME} Uses Version ${VERSION}, Source from https://github.com/${REPO_SOURCE}."
# If possible, directly get the latest release package from GitHub
- if [ ! "${USE_MAVEN}" = "TRUE" ] && [ ! "${VERSION}" = "latest" ]; then
mkdir -p "/tmp/release";
if wget -O "/tmp/release/${PACK_NAME}.zip" "https://github.com/${REPO_SOURCE}/releases/download/${VERSION}/${PACK_NAME}-${VERSION}.zip"; then
if unzip -o "/tmp/release/${PACK_NAME}.zip" -d "/tmp/release"; then
if [ ! -z "`ls /tmp/release/${PACK_NAME}-*.jar 2> /dev/null`" ]; then
mv -f /tmp/release/${PACK_NAME}-*.jar .;
fi;
fi;
fi;
fi
# Otherwise, pack the jar file using maven, if get upstream failed use cached
- if [ -z "`ls ${PACK_NAME}-*.jar 2> /dev/null`" ]; then
apt-get install git -y;
if git clone https://github.com/${REPO_SOURCE} repo; then
rm -rf repo_backup;
cp -r repo repo_backup;
else
echo "Warning... Upstream Unavailable, Using Cached Repo or Jar...";
if [ -d "repo_backup" ]; then
cp -r repo_backup repo;
fi;
fi;
if [ -d "repo" ]; then
cd repo;
if [ ! -z "${BUILD_BRANCH}" ]; then
git checkout ${BUILD_BRANCH};
fi;
if [ ! "${VERSION}" = "latest" ]; then
git reset --hard ${VERSION};
fi;
apt-get install maven -y;
mvn -B package --file pom.xml;
mv -f target/${PACK_NAME}-*.jar ..;
cd ..;
else
if [ ! -z "`ls jar_backup/${PACK_NAME}-*.jar 2> /dev/null`" ]; then
cp jar_backup/${PACK_NAME}-*.jar .;
else
echo "Both Upstream and Cached Repo or Jar are Unavailable!";
exit 1;
fi;
fi;
fi
# Export the config from environment variable to file
- echo ${CONFIG} > config.json
# Start running
- java -jar ${PACK_NAME}-*.jar
# Backup jar file
- mkdir -p jar_backup
- rm -rf jar_backup/*
- cp ${PACK_NAME}-*.jar jar_backup/
artifacts:
paths:
- "*.jar"
16 changes: 0 additions & 16 deletions .idea/compiler.xml

This file was deleted.

Loading