This is an automated email from the ASF dual-hosted git repository. mibo pushed a commit to branch OLINGO-1639-GH_release_upgrade in repository https://gitbox.apache.org/repos/asf/olingo-odata2.git
commit 5080c5fd4d2e0f3f1e265d504643bb89cd9e1fe0 Author: mibo <m...@apache.org> 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/checkout@v4.2.2 + + - name: Set up Java + uses: actions/setup-java@v4.6.0 + 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