This is an automated email from the ASF dual-hosted git repository.
piergiorgio pushed a commit to branch CONNECTORS-1754
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git
The following commit(s) were added to refs/heads/CONNECTORS-1754 by this push:
new f0fe4f8bc Fix for the GitHub workflow (CONNECTORS-1754)
f0fe4f8bc is described below
commit f0fe4f8bc3ee7c95ff01d0320c2ff916b40b44d1
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Sat Jun 15 22:21:29 2024 +0200
Fix for the GitHub workflow (CONNECTORS-1754)
---
.github/asf-deploy-settings.xml | 37 ++++++++++++++++++++++++++
.github/workflows/create-release-candidate.yml | 26 +++++++++++-------
2 files changed, 54 insertions(+), 9 deletions(-)
diff --git a/.github/asf-deploy-settings.xml b/.github/asf-deploy-settings.xml
new file mode 100644
index 000000000..fece670ba
--- /dev/null
+++ b/.github/asf-deploy-settings.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+ http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://maven.apache.org/SETTINGS/1.0.0
+ http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+ <servers>
+
+ <server>
+ <id>apache.releases.https</id>
+ <username>${{ secrets.NEXUS_STAGE_DEPLOYER_USER }}</username>
+ <password>${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}</password>
+ </server>
+ <server>
+ <id>apache.snapshots.https</id>
+ <username>${{ secrets.NEXUS_USER }}</username>
+ <password>${{ secrets.NEXUS_PW }}</password>
+ </server>
+ </servers>
+
+</settings>
diff --git a/.github/workflows/create-release-candidate.yml
b/.github/workflows/create-release-candidate.yml
index 64daf8f7e..8a76e4255 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -19,6 +19,9 @@ name: Create Release Candidate
run-name: ${{ github.actor }} is executing Create Release Branch
permissions:
contents: write
+env:
+ NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
+ NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }}
on:
workflow_dispatch:
inputs:
@@ -184,15 +187,15 @@ jobs:
asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip
asset_content_type: application/zip
- - name: Upload Release Candidate Asset - Binary - asc format
- uses: actions/[email protected]
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
- asset_path: ./apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.asc
- asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.asc
- asset_content_type: application/pgp-signature
+ #- name: Upload Release Candidate Asset - Binary - asc format
+ # uses: actions/[email protected]
+ # env:
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # with:
+ # upload_url: ${{ steps.create_release_candidate.outputs.upload_url }}
+ # asset_path: ./apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.asc
+ # asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-bin.zip.asc
+ # asset_content_type: application/pgp-signature
- name: Upload artifacts - Lib - tar.gz format
uses: actions/[email protected]
@@ -258,6 +261,11 @@ jobs:
asset_name: apache-manifoldcf-${{
steps.artifactVersion.outputs.version }}-src.zip
asset_content_type: application/zip
+ - name: Deploy Maven artifacts to the ASF Snapshots Repository
+ shell: bash
+ run: |
+ mvn deploy -DrepositoryId=apache.snapshots.https --settings
../asf-deploy-settings.xml -q
+
- name: Set up QEMU
uses: docker/[email protected]