1+ #
2+ # Licensed to the Apache Software Foundation (ASF) under one
3+ # or more contributor license agreements. See the NOTICE file
4+ # distributed with this work for additional information
5+ # regarding copyright ownership. The ASF licenses this file
6+ # to you under the Apache License, Version 2.0 (the
7+ # "License"); you may not use this file except in compliance
8+ # with the License. You may obtain a copy of the License at
9+ #
10+ # http://www.apache.org/licenses/LICENSE-2.0
11+ #
12+ # Unless required by applicable law or agreed to in writing,
13+ # software distributed under the License is distributed on an
14+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ # KIND, either express or implied. See the License for the
16+ # specific language governing permissions and limitations
17+ # under the License.
18+ #
19+
20+ name : Publish Snapshot Artifacts
21+ run-name : ${{ github.actor }} is publishing snapshots artifacts
22+
23+ on :
24+ workflow_dispatch :
25+ push :
26+ branches :
27+ - master
28+
29+ jobs :
30+ deployReleaseCandidateMavenArtifacts :
31+ if : github.repository == 'apache/olingo-odata2'
32+ name : " Deploy Apache Olingo V2 Snapshot"
33+ runs-on : ubuntu-22.04
34+ steps :
35+ - name : Checkout
36+ uses : actions/checkout@v4.2.2
37+
38+ - name : Set up Java
39+ uses : actions/setup-java@v4.6.0
40+ with :
41+ java-version : ' 11'
42+ distribution : ' temurin'
43+ architecture : x64
44+ cache : maven
45+ server-id : apache.snapshots.https
46+ server-username : NEXUS_USER
47+ server-password : NEXUS_PW
48+
49+ - name : Maven Build
50+ run : mvn clean install -B -DskipTests -DskipITs
51+
52+ - name : Deploy
53+ run : mvn deploy -B -DskipTests -DskipITs -Dmaven.javadoc.skip=true
54+ env :
55+ NEXUS_USER : ${{ secrets.NEXUS_USER }}
56+ NEXUS_PW : ${{ secrets.NEXUS_PW }}
0 commit comments