Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 97401d6

Browse files
added auto release
1 parent 419b52b commit 97401d6

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,22 @@ jobs:
7575
docker compose build
7676
docker compose up -d
7777
EOF
78+
create-release:
79+
needs: [build]
80+
runs-on: ubuntu-latest
81+
steps:
82+
- name: Download artifacts
83+
uses: actions/download-artifact@v4
84+
85+
- name: Create Release
86+
id: create_release
87+
uses: softprops/action-gh-release@v2
88+
with:
89+
files: |
90+
mc-oauth-all.jar
91+
draft: false
92+
prerelease: false
93+
generate_release_notes: true
94+
make_latest: true
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/main/java/com/andcool/OAuthServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import javax.imageio.ImageIO;
1212

13+
import io.netty.util.ResourceLeakDetector;
1314
import org.json.JSONObject;
1415

1516
import com.andcool.config.UserConfig;
@@ -46,6 +47,8 @@ public class OAuthServer {
4647
public static final String SERVER_ICON = loadIcon();
4748

4849
public static void main(String[] args) throws Exception {
50+
ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.PARANOID);
51+
4952
UserConfig.load();
5053
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
5154
EventLoopGroup workerGroup = new NioEventLoopGroup();

0 commit comments

Comments
 (0)