Skip to content

Commit

Permalink
fix: publish ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Dec 28, 2022
1 parent 82963f1 commit e5ff887
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 44 deletions.
55 changes: 13 additions & 42 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,20 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v2
with:
submodules: true
uses: actions/checkout@v3

# setup Java
- name: Setup Java 11
uses: actions/setup-java@v2
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
distribution: 'zulu'
java-version: 17

# setup Gradle
- name: Gradle Publish Release
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.5.1
gradle-version: 7.6
arguments: clean assemble build test

publish-release:
Expand All @@ -44,14 +42,14 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v2
uses: actions/checkout@v3

# setup Java
- name: Setup Java 11
uses: actions/setup-java@v2
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
distribution: 'zulu'
java-version: 17

# the gpg
- name: Decode gpg file
Expand All @@ -66,7 +64,7 @@ jobs:
- name: Gradle Publish Release
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.5.1
gradle-version: 7.6
arguments: clean build publishArchetypePublicationToSonatypeRepository closeAndReleaseStagingRepository --warning-mode all --info -Porg.gradle.jvmargs="org.gradle.jvmargs=-Xmx4G -Xms4G -XX:MaxMetaspaceSize=512m -Dfile.encoding=UTF-8"
env:
SIMBOT_IS_SNAPSHOT: false
Expand All @@ -82,7 +80,7 @@ jobs:
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v2
uses: actions/checkout@v3

# Create gitHub release
- name: Create Github Release
Expand All @@ -94,31 +92,4 @@ jobs:
prerelease: ${{ contains(github.ref_name, 'preview') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') }}


# publish-snapshot:
# name: Publish snapshot
# runs-on: ubuntu-latest
# needs: publish-release
# steps:
# # 检出仓库代码
# - name: Check out repo
# uses: actions/checkout@v2
#
# # setup Java
# - name: Setup java 11
# uses: actions/setup-java@v2
# with:
# distribution: 'temurin'
# java-version: 11
#
# # setup Gradle
# - name: Gradle publish snapshot
# uses: gradle/gradle-build-action@v2
# with:
# gradle-version: 7.5.1
# arguments: clean build createChangelog publishToSonatype closeAndReleaseStagingRepository -Porg.gradle.workers.max=16 -Porg.gradle.parallel=true
# env:
# SIMBOT_IS_SNAPSHOT: true
# SIMBOT_SNAPSHOT_ONLY: true
# SIMBOT_RELEASES_ONLY: false


4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists

0 comments on commit e5ff887

Please sign in to comment.