diff --git a/.gitea/workflows/loop-plugin-with-marketplace-template.yml b/.gitea/workflows/loop-plugin-with-marketplace-template.yml index f52623c..e3147d2 100644 --- a/.gitea/workflows/loop-plugin-with-marketplace-template.yml +++ b/.gitea/workflows/loop-plugin-with-marketplace-template.yml @@ -106,16 +106,12 @@ jobs: # filename: dist/${{ steps.plugin-meta.outputs.PLUGIN }} - name: ci/push-plugin - uses: astertom/nexus-upload-artifact@v1 - env: - NEXUS_HOST_URL: ${{ inputs.artifacts_url }} - NEXUS_USER: ${{ steps.publish-secrets.outputs.ARTIFACTS_USERNAME }} - NEXUS_TOKEN: ${{ steps.publish-secrets.outputs.ARTIFACTS_PASSWORD }} - with: - pattern: ${{ steps.plugin-meta.outputs.PLUGIN }} - repositories: ${{ inputs.artifacts_repository }} - directory: dist - path: /plugins/${{ steps.plugin-meta.outputs.PLUGIN_ID }}/${{ steps.plugin-meta.outputs.PLUGIN_VERSION }} + run: | + curl -u "${{ steps.publish-secrets.outputs.ARTIFACTS_USERNAME }}:${{ steps.publish-secrets.outputs.ARTIFACTS_PASSWORD }}" \ + -X POST "${{ inputs.artifacts_url }}/service/rest/v1/components?repository=${{ inputs.artifacts_repository }}" \ + -F "raw.directory=/plugins/${{ steps.plugin-meta.outputs.PLUGIN_ID }}/${{ steps.plugin-meta.outputs.PLUGIN_VERSION }}" \ + -F "raw.asset1=@dist/${{ steps.plugin-meta.outputs.PLUGIN }}" \ + -F "raw.asset1.filename=${{ steps.plugin-meta.outputs.PLUGIN }}" - name: ci/push-plugin-sign uses: sonatype-nexus-community/nexus-repo-github-action@master