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: |
${{ runner.os }}-gradle-
- name: Build and publish to Gitea Maven
run: ./gradlew clean publish --no-daemon -PgiteaToken=${{ secrets.CI_PUBLISH_TOKEN }}
- name: Setup SSH key and rsync
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
uses: actions/upload-artifact@v3
with:
name: conflux
path: build/libs/*.jar
- name: Build and publish to Gitea Maven and JavaDoc to the website
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
- name: Generate release notes
id: notes
@@ -85,5 +89,5 @@ jobs:
- name: Create Gitea Release
uses: softprops/action-gh-release@v2
with:
# nothing extra, files: build/libs/*.jar
files: app/build/libs/*.jar
body_path: /tmp/release_notes.md