Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos authored Dec 16, 2023
0 parents commit fdff934
Show file tree
Hide file tree
Showing 13 changed files with 1,310 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bugs_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Submit bugs&issues
about: Describe the problem and submit it to help us review and fix it.
title: ''
labels: bug
assignees: ''

---

### **Description**

<!-- Describe the general problem in short words.-->

### **Operatios**

<!--
Describe the problem discovered through what operations, such as:
1. Clicked '...'
2. Typed '....'
3. Error says '....'
-->

### **Expected result** _(Optional)_

### **Screenshots & Error Logs**


### **Environment**

- System: `Windows 10` / `Ubuntu` / `...`
- Java version: `JDK11` / `OPENJDK8` / `JRE8` / `...`

### **Anything else...**

<!-- If there are other supplements, they can be described here. -->
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Features
about: Ask for new features.
title: ''
labels: enhancement
assignees: ''
---

### **Description**

<!-- Describe the features in short words.-->

### **Source**

<!-- Describe the reason that you need this feature in short words.-->

### **Examples** _(Optional)_

<!--Any screenshots or example codes please.-->

### **AddItional details**

<!--If there are any small details that need to be highlighted, please let us know 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: "daily"
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Deploy & Upload

on:
# 支持手动触发构建
workflow_dispatch:
release:
# 创建release的时候触发
types: [ published ]

jobs:
gh-deploy:
name: "Publish Project (GitHub)"
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: "Set up JDK"
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'adopt'
cache: maven

- name: "Maven Deploy"
run: mvn --batch-mode deploy -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Release Asset Upload"
id: upload-release-asset
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ".asset/*.jar"
asset_content_type: application/java-archive
42 changes: 42 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Build & Test

on:
# 支持手动触发构建
workflow_dispatch:
push:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: "Set up JDK"
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'adopt'
cache: maven

- name: "Package"
run: mvn -B package --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload artifacts"
uses: actions/upload-artifact@v2
with:
name: artifacts
path: "**/target/"
retention-days: 1 # 仅保留1天。

- name: "Upload assets"
uses: actions/upload-artifact@v2
with:
name: assets
path: ".asset/"
retention-days: 5
36 changes: 36 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.asset/
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

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

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
Loading

0 comments on commit fdff934

Please sign in to comment.