chore: improving workflow

This commit is contained in:
2025-08-04 22:42:49 +02:00
parent 94726b172a
commit cd3246d422
2 changed files with 12 additions and 11 deletions

View File

@@ -31,14 +31,18 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-gradle- ${{ runner.os }}-gradle-
- name: Build and publish to Gitea Maven - name: Setup SSH key and rsync
run: ./gradlew clean publish --no-daemon -PgiteaToken=${{ secrets.CI_PUBLISH_TOKEN }} run: |
mkdir -p ~/.ssh
echo "${{ secrets.JAVADOC_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.CI_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
chmod -R 600 ~/.ssh
rm /etc/apt/sources.list.d/microsoft-prod.list
apt-get update
apt install -y rsync
- name: Upload built JAR - name: Build and publish to Gitea Maven and JavaDoc to the website
uses: actions/upload-artifact@v3 run: ./gradlew clean publish uploadJavadoc --no-daemon -PgiteaToken=${{ secrets.CI_PUBLISH_TOKEN }} -PjavadocUser=${{ vars.JAVADOC_USER }} -PjavadocHost=${{ vars.JAVADOC_HOST }} -PjavadocPath=${{ vars.JAVADOC_PATH }} -PjavadocKeyPath=~/.ssh/id_rsa
with:
name: conflux
path: build/libs/*.jar
- name: Generate release notes - name: Generate release notes
id: notes id: notes
@@ -85,5 +89,5 @@ jobs:
- name: Create Gitea Release - name: Create Gitea Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
# nothing extra, files: build/libs/*.jar files: app/build/libs/*.jar
body_path: /tmp/release_notes.md body_path: /tmp/release_notes.md

View File

@@ -58,9 +58,6 @@ java {
toolchain { toolchain {
languageVersion = JavaLanguageVersion.of(21) languageVersion = JavaLanguageVersion.of(21)
} }
withJavadocJar()
withSourcesJar()
} }
javadoc { javadoc {