-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/AntiMage' into develop
- Loading branch information
Showing
305 changed files
with
3,380 additions
and
1,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
name: Release-To-OssRh | ||
run-name: Deploy ${{github.event.release.tag_name}} to Sonatype by @${{ github.actor }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
testCoverReport: | ||
description: 'test and coveralls report?' | ||
default: true | ||
type: boolean | ||
required: false | ||
testFailureIgnore: | ||
description: 'test failure.ignore?' | ||
default: false | ||
type: boolean | ||
required: false | ||
testLoggerLevel: | ||
description: 'test logger level' | ||
default: WARN | ||
type: choice | ||
options: | ||
- DEBUG | ||
- INFO | ||
- WARN | ||
- ERROR | ||
required: false | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
name: Release to Sonatype | ||
runs-on: ubuntu-latest | ||
env: | ||
MAVEN_OPTS: -Xmx2g | ||
LOG_LEVEL: ${{ inputs.testLoggerLevel }} | ||
WINGS_HOME: ${{ github.workspace }} | ||
|
||
steps: | ||
- name: Checkout ${{github.event.release.tag_name}} | ||
uses: actions/checkout@v4 | ||
## chache asdf/, m2/repository | ||
- name: Cache Sdk & Repo | ||
id: cache-sdk-repo | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.asdf/ | ||
~/.m2/repository/ | ||
key: asdf-m2-repo-${{hashFiles('.tool-versions')}} | ||
|
||
## install jdk and maven | ||
- name: Install asdf & tools | ||
uses: asdf-vm/actions/install@v2 | ||
with: | ||
skip_install: ${{steps.cache-sdk-repo.outputs.cache-hit == 'true'}} | ||
|
||
## write settings.xml | ||
- name: Maven settings.xml | ||
run: | | ||
mkdir -p ~/.m2 | ||
cat > ~/.m2/settings.xml << "EOF" | ||
<settings> | ||
<interactiveMode>false</interactiveMode> | ||
<servers> | ||
<server> | ||
<id>ossrh</id> | ||
<username>${MVN_OSS_USER}</username> | ||
<password>${MVN_OSS_PASS}</password> | ||
</server> | ||
</servers> | ||
</settings> | ||
EOF | ||
## get JAVA_HOME | ||
- name: Env JAVA_HOME | ||
id: java-env | ||
run: echo "JAVA_HOME=$(asdf where java)" >> "$GITHUB_OUTPUT" | ||
## get revision if release | ||
- name: Opt revision | ||
id: opt-revision | ||
if: github.event.release.tag_name != '' | ||
run: echo "OPT_REVISION=-Drevision=${{github.event.release.tag_name}}" >> "$GITHUB_OUTPUT" | ||
## info deploy | ||
- name: Info Deploy | ||
run: | | ||
mvn --quiet --non-recursive -DforceStdout -Dexpression=project.version ${{ steps.opt-revision.outputs.OPT_REVISION }} help:evaluate | ||
echo | ||
mvn -v | ||
git --no-pager log --graph -10 --pretty=format:'%H - %an, %ad %d : %s' | ||
env: | ||
JAVA_HOME: ${{ steps.java-env.outputs.JAVA_HOME }} | ||
## ci report if not release | ||
- name: Coveralls Report | ||
if: inputs.testCoverReport | ||
run: > | ||
mvn | ||
-P ci | ||
--quiet | ||
-Duser.timezone=Asia/Shanghai | ||
-Dtesting-json='{ | ||
"debug":"${{ inputs.testLoggerLevel == 'DEBUG' }}", | ||
"test-verbose":"${{ inputs.testLoggerLevel == 'DEBUG' }}", | ||
"sentry.logging.enabled":"${{ inputs.testLoggerLevel == 'DEBUG' }}", | ||
"spring.wings.silencer.enabled.verbose":"${{ inputs.testLoggerLevel == 'DEBUG' }}", | ||
"logging.level.root":"${{ inputs.testLoggerLevel }}", | ||
"logging.level.org.springframework.web":"${{ inputs.testLoggerLevel }}", | ||
"logging.level.org.jooq":"${{ inputs.testLoggerLevel }}" | ||
}' | ||
-Dmaven.test.failure.ignore=${{ inputs.testFailureIgnore }} | ||
-DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }} | ||
clean test jacoco:report coveralls:report | ||
env: | ||
JAVA_HOME: ${{ steps.java-env.outputs.JAVA_HOME }} | ||
## import gpp private key | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.MVN_GPG_SKEY }} | ||
passphrase: ${{ secrets.MVN_GPG_PASS }} | ||
## maven deploy | ||
- name: Maven Deploy | ||
run: > | ||
mvn | ||
-P ossrh | ||
${{ steps.opt-revision.outputs.OPT_REVISION }} | ||
-Dgpg.passphrase=${MVN_GPG_PASS} | ||
clean deploy | ||
env: | ||
JAVA_HOME: ${{ steps.java-env.outputs.JAVA_HOME }} | ||
MVN_OSS_USER: ${{ secrets.MVN_OSS_USER }} | ||
MVN_OSS_PASS: ${{ secrets.MVN_OSS_PASS }} | ||
MVN_GPG_PASS: ${{ secrets.MVN_GPG_PASS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
java temurin-21.0.1+12.0.LTS | ||
maven 3.9.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
example/winx-common/src/main/resources/wings-conf/spring-datasource.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3.9' | ||
name: professional-wings | ||
services: | ||
mysql: | ||
container_name: wings-mysql8 | ||
image: mysql:8.0.35 | ||
restart: unless-stopped | ||
command: | ||
- --disable-log-bin | ||
environment: | ||
MYSQL_DATABASE: 'test' | ||
MYSQL_USER: 'trydofor' | ||
MYSQL_PASSWORD: 'moilioncircle' | ||
MYSQL_ROOT_PASSWORD: 'moilioncircle' | ||
volumes: | ||
- ./mysql/init/:/docker-entrypoint-initdb.d/ | ||
- ./mysql/conf/:/etc/mysql/conf.d/ | ||
ports: | ||
- '51487:3306' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[mysqld] | ||
authentication_policy = caching_sha2_password | ||
max_connections = 4096 | ||
lower_case_table_names = 1 | ||
innodb_ft_min_token_size = 2 | ||
ft_min_word_len = 2 | ||
ngram_token_size = 2 | ||
character-set-server = UTF8MB4 | ||
default-time-zone = '+8:00' | ||
log_bin_trust_function_creators = 1 | ||
innodb_file_per_table = 1 | ||
#skip_grant_tables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
GRANT ALL ON `wings%`.* TO 'trydofor'@'%'; | ||
FLUSH PRIVILEGES; |
Oops, something went wrong.