Commit Graph

63 Commits

Author SHA1 Message Date
John Niang
08898bf100 Integrate with SonarCloud 2023-11-15 15:14:55 +08:00
Ryan Wang
c48c5f94a7 chore: update issue templates (#4641)
#### What type of PR is this?

None

#### What this PR does / why we need it:

更新 issue 模板。

#### Does this PR introduce a user-facing change?

```release-note
None 
```
2023-09-22 05:06:23 +00:00
BugKing
32d2def93c ci: push image to GHCR for pull_request event 2023-09-11 13:57:34 +08:00
Ryan Wang
5a0e202847 chore: add sponsorship entry and sponsor image (#4233)
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

添加[爱发电](https://afdian.net/a/halo-dev)的赞助入口,以及在 README 上添加 Sponsors 图像,此图像会在 https://github.com/halo-sigs/sponsor-images 仓库中自动更新。

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-07-16 16:14:19 +00:00
John Niang
ed14fcb5f4 Support publishing to maven central repository (#3767)
#### What type of PR is this?

/kind feature
/area core

#### What this PR does / why we need it:

Use Gradle plugin `maven-publish` to publish Halo modules(`platform.application`, `platform.plugin` and `api`) to Maven central repository.

```bash
# Try to publish to Maven local repository.
./gradlew publish
# Really publish to Maven central repository.
./gradlew -Prelease publish -PossrhUsername=username -PossrhPassword=password
```

Note that currently we only support manually publishing.

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2730

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-04-18 14:28:23 +08:00
Ryan Wang
86ee91a92e chore: remove issues triage action config files (#3503)
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

移除在 https://github.com/halo-dev/halo/pull/1416 中引入的通过 GitHub Actions 来实现 ChatOps 的配置文件,目前已经使用了 Prow 代替。

#### Does this PR introduce a user-facing change?

```release-note
None
```
2023-03-13 11:58:17 +00:00
John Niang
c43a81058a Refactor workflow for new console project (#3445)
Signed-off-by: johnniang <johnniang@fastmail.com>
2023-03-02 18:07:23 +08:00
John Niang
0d9ec4f197 Report test result using Jacoco plugin (#3385) 2023-02-24 15:51:21 +08:00
John Niang
03ec23f90f Bump up checkout and setup-java actions (#3368) 2023-02-22 23:03:48 +08:00
John Niang
8f21880683 Enable CI on release branches (#2876) 2022-12-08 10:46:26 +08:00
John Niang
cd5cc74714 Set docker image name properly when releasing (#2872) 2022-12-07 15:56:03 +08:00
Ryan Wang
4f4f35c67f chore: update issue templates for Halo 2.0 (#2788)
#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

为 Halo 2.0 更新 issue 模板。

#### Special notes for your reviewer:

效果可以查看:

- https://github.com/ruibaby/halo/issues/new?assignees=&labels=bug&template=bug_report.zh.yml
- https://github.com/ruibaby/halo/issues/new?assignees=&labels=&template=feature_request.zh.yml

#### Does this PR introduce a user-facing change?

```release-note
None
```
2022-11-28 01:36:17 +00:00
John Niang
84b28cec16 Build console with release tag when releasing (#2665) 2022-11-07 16:03:15 +08:00
John Niang
e23193cd73 Add Pull Request template for default branch (#2513)
#### What type of PR is this?

/kind documentation

#### What this PR does / why we need it:

See https://github.com/halo-dev/halo/pull/2078 for more.

#### Does this PR introduce a user-facing change?

```release-note
None
```
2022-10-06 11:00:25 +00:00
John Niang
cd2dc99898 Change condition of docker push (#2499) 2022-09-30 19:04:24 +08:00
John Niang
a2ee2e492e Support pushing to Docker Hub (#2392)
Signed-off-by: johnniang <johnniang@fastmail.com>

Signed-off-by: johnniang <johnniang@fastmail.com>
2022-09-07 22:39:04 +08:00
John Niang
9ed0dcafcc Change image name to halo-dev (#2264) 2022-07-19 23:47:36 +08:00
John Niang
fe816e6843 Add checkout-from parameter for composite action (#2241)
#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

Add checkout-from parameter for composite action. Please see <a801af5be5/README.md>.

If we don't set the parameter for the action, it will checkout from `default branch` to build docker image. You can see <https://github.com/halo-dev/halo/runs/7316162265?check_suite_focus=true#step:2:478>.

#### Which issue(s) this PR fixes:

<!--
PR 合并时自动关闭 issue。
Automatically closes linked issue when PR is merged.

用法:`Fixes #<issue 号>`,或者 `Fixes (粘贴 issue 完整链接)`
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
None
```
2022-07-13 09:41:09 +00:00
John Niang
5953d2201d Refactor CICD for Halo next (#2236) 2022-07-12 11:01:00 +08:00
guqing
e2843adbe7 Create basic project structure for halo 2.0 (#1699)
* feat: Add project structure

* feat: Add config

* feat: Add flyway migrate config for h2 and mysql and postgresql

* fix: checkstyle config

* chore: Upgrade springboot 2.6 to 3.0.0-m1

* feat: Add spring snapshot url for repositories

* refactor: Change jdk11 to jdk17 for github ci config

* refactor: update build.gradle config
2022-03-04 15:04:11 +08:00
Ryan Wang
50f51d1cba chore: remove FUNDING.yml
Signed-off-by: Ryan Wang <i@ryanc.cc>
2022-01-13 20:34:47 +08:00
John Niang
f06f95fbdf Remove prefix v of tag name when releasing a new version (#1571)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-12-06 16:17:55 +08:00
John Niang
a376dca4d5 Set the final version with tag name when releasing (#1511)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-11-01 23:16:41 +08:00
John Niang
4ffbd502fe Refactor docker release in GitHub workflow (#1510)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-11-01 08:56:58 +08:00
John Niang
6be4051f9e Simplify Java setup in GitHub workflow (#1509)
Signed-off-by: John Niang <johnniang@fastmail.com>
2021-10-31 21:48:53 +08:00
Ryan Wang
6a0527bb3d chore: add deployment method option for issue templates. (#1452)
* chore: add deployment method option for issue templates.

Signed-off-by: Ryan Wang <i@ryanc.cc>
2021-08-14 17:03:06 +08:00
Ryan Wang
74acd451b7 chore: remove auto-assign bot config file. (#1446) 2021-08-04 09:05:22 +08:00
Ryan Wang
dd8968fee7 chore: add open-source-best-practice doc for issue templates. 2021-07-21 23:21:16 +08:00
Ryan Wang
5b58b4cd1a chore: add feature request issue templates. 2021-07-21 23:11:32 +08:00
guqing
95c0271cf1 feat: add issues triage action config (#1416) 2021-07-15 18:26:40 +08:00
Ryan Wang
878e7155a8 chore: add bug_report.yml 2021-07-05 23:39:56 +08:00
Ryan Wang
8c35633b90 chore: add bug_report.yml 2021-07-05 23:37:58 +08:00
Ryan Wang
8fa4cbd861 chore: delete bug_report.yml 2021-07-05 22:47:19 +08:00
Ryan Wang
f1f62be696 chore: add bug_report.yml 2021-07-05 22:45:49 +08:00
Ryan Wang
4aec84f0a6 chore: add auto assign app config file. 2021-06-29 22:18:21 +08:00
Ryan Wang
77824d50e3 Fix github actions build. (#1377)
* chore: fix github actions build.

* test: github actions
2021-05-27 13:45:58 +08:00
Ryan Wang
97b3dab5c9 Update FUNDING.yml 2021-03-03 09:48:40 +08:00
Ryan Wang
bbde1a7727 doc: add document website. (#1215)
* doc: add document website.

* doc: add document website.

* doc: add document website.
2021-01-28 00:42:16 +08:00
John Niang
bcf26fdc50 Refactor Dockerfile with layered jar (#1248)
* Refactor Dockerfile with layered jar

* Add projectVersion print task

* Refactor docker build process

* Remove aliyun maven mirror

* Correct multi platforms list

* Correct multi platforms list again

* Make docker platforms configurable
2021-01-27 23:55:57 +08:00
John Niang
feab7c4b5f Refactor checkstyle (#1241)
* Refactor checkstyle.xml and add .editorconfig

* Optimized imports

* Rearrange codes

* Fix check sytle error in source codes

* Reformat test codes

* Fix check style error in test codes

* Config checkstyle plugin

* Fix merge conflicts
2021-01-24 17:11:10 +08:00
John Niang
7cb4f3464a Replace travis ci with github action (#1212)
* 1196 refactor/ci (#3)

* Remove .travis.yml

* Refactor github action partially

* Fix yaml syntax error

* Add run command for every step

* Set current branch name into halo.yml temporarily

* Test validation.yml

* Add upload-release-asset step into release.yml

* Perfect release.yml

* Fix indent error

* Refactor on condition in release.yml

* Refactor on condition in validation.yml

* Fix release.yml

* Fix upload_url value set

* Fix environment set error

* Change artifact variable from output into global environment

* Fix deprecated environment set method

* Fix environment variable set error

* Change assert_content_type with application/zip

* Refactor upload release step

* Fix release id set

* Fix release id set again

* Fix syntax error

* Refactor upload process

* Refactor halo ci

* Make build step rely on check step

* Inspect docker action

* Inspect docker action again

* Refine bootBuildImage config

* Refactor bootBuildImage config and halo ci

* Fix download artifact path error

* Fix docker image name concat error

* Remove downloaded files inspect tips
2021-01-03 22:05:39 +08:00
John Niang
30e28b5257 Upgrade dependencies (#1184)
* Update spring boot version and source compatibility version

* Rearrange some configs

* Upgrade swagger to 3.0.0

* Make swagger configurable

* Make swagger-ui.html path backward compatible

* Change jdk version into 11 in ci/cd scripts and Dockerfile
2020-12-08 01:20:19 +08:00
Ryan Wang
c9183421e3 Merge branch 'master' into dev 2020-02-10 23:54:48 +08:00
John Niang
44a6c46620 feat: enable default theme submodule support. (#548)
* Remove anatole theme for submodule

* Enable submodule support

* Enable submodule support for checkouting by github action
2020-02-09 11:43:00 +08:00
ruibaby
f6dacad363 style: update halo.run url. 2020-02-06 14:34:39 +08:00
johnniang
73bea52f68 Enable github action cache for CI 2020-01-31 11:22:00 +08:00
johnniang
acc8ec44d2 Enable github ci on pull request 2020-01-30 23:26:39 +08:00
Ryan Wang
5a29062d41 feat: update FUNDING.yml. 2020-01-18 16:31:19 +08:00
leozhou
89086dd345 fix: #489
* Update FUNDING.yml

* merge from master

* feat: update page default sort && update the pre and next of posts

* feat: adapter dev branch

* Feat: update getAdjacentPosts return && update post ftl

* fix: revert gradle-wrapper.jar

Co-authored-by: Ryan Wang <i@ryanc.cc>
Co-authored-by: Jiahuan Shen <shenjiahuan1999@hotmail.com>
Co-authored-by: John Niang <johnniang@riseup.net>
Co-authored-by: weiwensangsang <weiwensangsang@users.noreply.github.com>
Co-authored-by: Lei XinXin <40338580+NGLSL@users.noreply.github.com>
Co-authored-by: 寒山 <ms915818993@163.com>
Co-authored-by: IJKZEN <ijkzen@outlook.com>
2020-01-16 18:00:33 +08:00
Ryan Wang
7c5f220c01 feat: update FUNDING.yml. 2020-01-16 17:19:37 +08:00