This is an automated email from the ASF dual-hosted git repository.
mibo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata2.git
The following commit(s) were added to refs/heads/master by this push:
new 4d5418de [OLINGO-1639] Added snapshot release workflow
4d5418de is described below
commit 4d5418de2046be8bdc09b6e52d061c81c3c85a5f
Author: mibo <[email protected]>
AuthorDate: Wed May 7 21:43:56 2025 +0200
[OLINGO-1639] Added snapshot release workflow
---
.github/workflows/maven-release-snapshot.yml | 56 ++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/.github/workflows/maven-release-snapshot.yml
b/.github/workflows/maven-release-snapshot.yml
new file mode 100644
index 00000000..d20eb08a
--- /dev/null
+++ b/.github/workflows/maven-release-snapshot.yml
@@ -0,0 +1,56 @@
+#
+# 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.
+#
+
+name: Publish Snapshot Artifacts
+run-name: ${{ github.actor }} is publishing snapshots artifacts
+
+on:
+ workflow_dispatch:
+ push:
+ branches:
+ - master
+
+jobs:
+ deployReleaseCandidateMavenArtifacts:
+ if: github.repository == 'apache/olingo-odata2'
+ name: "Deploy Apache Olingo V2 Snapshot"
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout
+ uses: actions/[email protected]
+
+ - name: Set up Java
+ uses: actions/[email protected]
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+ architecture: x64
+ cache: maven
+ server-id: apache.snapshots.https
+ server-username: NEXUS_USER
+ server-password: NEXUS_PW
+
+ - name: Maven Build
+ run: mvn clean install -B -DskipTests -DskipITs
+
+ - name: Deploy
+ run: mvn deploy -B -DskipTests -DskipITs -Dmaven.javadoc.skip=true
+ env:
+ NEXUS_USER: ${{ secrets.NEXUS_USER }}
+ NEXUS_PW: ${{ secrets.NEXUS_PW }}
\ No newline at end of file