Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 31 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Maven Package

on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/${{ github.repository }}
env:
GITHUB_TOKEN: ${{ github.token }}
27 changes: 20 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
<description>MinecraftManager</description>
<properties>
<java.version>17</java.version>
<!-- 跳过测试 -->
<skipTests>true</skipTests>
<maven.test.skip>true</maven.test.skip>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 移除了spring-boot-starter-test依赖 -->

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down Expand Up @@ -99,6 +99,8 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
</configuration>
<executions>
<execution>
<goals>
Expand All @@ -107,6 +109,11 @@
</execution>
</executions>
</plugin>
<!-- 配置maven-compiler-plugin跳过测试 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
Expand All @@ -117,5 +124,11 @@
</resource>
</resources>
</build>

</project>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/LeisureTimeDock/MinecraftLTDWhitelistSystem</url>
</repository>
</distributionManagement>
</project>
Binary file added src/main/resources/static/pic/1_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/main/resources/templates/player/apply.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ <h2 class="text-primary">
<div class="timeline-badge primary"></div>
<a class="timeline-panel text-muted" href="javascript:void(0);">
<span>最近</span>
<h6 class="mb-0">服务器某刻正在上演着趣事……<img alt=""
<h6 class="mb-0">服务器迈入机械动力时代,而且是1.20.1……<img alt=""
class="img-fluid w-100"
src="/pic/1.jpeg"></h6>
<p class="mb-0">性感莫莫,在线被调</p>
src="/pic/1_1.png"></h6>
<p class="mb-0">终于玩上机械动力了/(ㄒoㄒ)/~~</p>
</a>
</li>
<li>
Expand Down Expand Up @@ -229,7 +229,7 @@ <h5 class="f-w-500">白名单系统 <span class="pull-end">:</span>
<h5 class="f-w-500">服务器群 <span class="pull-end">:</span>
</h5>
</div>
<div class="col-sm-9 col-7"><span>776306754</span>
<div class="col-sm-9 col-7"><span>538751386</span>
</div>
</div>
</div>
Expand Down Expand Up @@ -301,7 +301,7 @@ <h2 class="text-primary" th:if="${session.apply == 1 || session.apply == 3}" th:
</div>
<div class="footer">
<div class="copyright">
<p>@闲趣时坞 qq群号776306754</p>
<p>@闲趣时坞 qq群号538751386</p>
</div>
</div>
</div>
Expand Down