From 5bb9e0c1b7109f72462aabbaa28f8f0fe88d7e65 Mon Sep 17 00:00:00 2001 From: sarmstrong Date: Tue, 22 Sep 2026 16:07:35 +0300 Subject: [PATCH] Replace sonatype upload action. --- .../loop-plugin-with-marketplace-template.yml | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/loop-plugin-with-marketplace-template.yml b/.gitea/workflows/loop-plugin-with-marketplace-template.yml index 09fbe29..f3b0003 100644 --- a/.gitea/workflows/loop-plugin-with-marketplace-template.yml +++ b/.gitea/workflows/loop-plugin-with-marketplace-template.yml @@ -120,16 +120,18 @@ jobs: -F "raw.asset1.filename=${{ steps.plugin-meta.outputs.PLUGIN }}" - name: ci/push-plugin-sign - uses: sonatype-nexus-community/nexus-repo-github-action@master + uses: ./.github/actions/nexus-publish-action with: - serverUrl: ${{ inputs.artifacts_url }} - username: ${{ steps.publish-secrets.outputs.ARTIFACTS_USERNAME }} - password: ${{ steps.publish-secrets.outputs.ARTIFACTS_PASSWORD }} - format: raw - repository: ${{ inputs.artifacts_repository }} - coordinates: directory=plugins/${{ steps.plugin-meta.outputs.PLUGIN_ID }}/${{ steps.plugin-meta.outputs.PLUGIN_VERSION }} - assets: filename=${{ steps.plugin-meta.outputs.PLUGIN }}.sig - filename: dist/${{ steps.plugin-meta.outputs.PLUGIN }}.sig + nexus_server: ${{ inputs.artifacts_url }} + nexus_username: ${{ steps.publish-secrets.outputs.ARTIFACTS_USERNAME }} + nexus_password: ${{ steps.publish-secrets.outputs.ARTIFACTS_PASSWORD }} + repository_format: "raw" + repository_name: ${{ inputs.artifacts_repository }} + upload_path: directory=plugins/${{ steps.plugin-meta.outputs.PLUGIN_ID }}/${{ steps.plugin-meta.outputs.PLUGIN_VERSION }} + #assets: filename=${{ steps.plugin-meta.outputs.PLUGIN }}.sig + #filename: dist/${{ steps.plugin-meta.outputs.PLUGIN }}.sig + files_path: "./dist" + file_pattern: ${{ steps.plugin-meta.outputs.PLUGIN }}.sig - name: ci/plugin-json uses: https://git.wilix.dev/wilix-infra/actions/.gitea/actions/plugin/json@master @@ -143,13 +145,15 @@ jobs: artifacts_repository: ${{ inputs.artifacts_repository }} - name: ci/push-plugin-json - uses: sonatype-nexus-community/nexus-repo-github-action@master + uses: ./.github/actions/nexus-publish-action with: - serverUrl: ${{ inputs.artifacts_url }} - username: ${{ steps.publish-secrets.outputs.ARTIFACTS_USERNAME }} - password: ${{ steps.publish-secrets.outputs.ARTIFACTS_PASSWORD }} - format: raw - repository: ${{ inputs.artifacts_repository }} - coordinates: directory=plugins/${{ steps.plugin-meta.outputs.PLUGIN_ID }}/${{ steps.plugin-meta.outputs.PLUGIN_VERSION }} - assets: filename=${{ steps.plugin-meta.outputs.PLUGIN }}.json - filename: dist/${{ steps.plugin-meta.outputs.PLUGIN }}.json + nexus_server: ${{ inputs.artifacts_url }} + nexus_username: ${{ steps.publish-secrets.outputs.ARTIFACTS_USERNAME }} + nexus_password: ${{ steps.publish-secrets.outputs.ARTIFACTS_PASSWORD }} + repository_format: "raw" + repository_name: ${{ inputs.artifacts_repository }} + upload_path: directory=plugins/${{ steps.plugin-meta.outputs.PLUGIN_ID }}/${{ steps.plugin-meta.outputs.PLUGIN_VERSION }} + #assets: filename=${{ steps.plugin-meta.outputs.PLUGIN }}.sig + #filename: dist/${{ steps.plugin-meta.outputs.PLUGIN }}.sig + files_path: "./dist" + file_pattern: ${{ steps.plugin-meta.outputs.PLUGIN }}.json -- 2.54.0