File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ # Licensed to the Apache Software Foundation (ASF) under one
2+ # or more contributor license agreements. See the NOTICE file
3+ # distributed with this work for additional information
4+ # regarding copyright ownership. The ASF licenses this file
5+ # to you under the Apache License, Version 2.0 (the
6+ # "License"); you may not use this file except in compliance
7+ # with the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing,
12+ # software distributed under the License is distributed on an
13+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ # KIND, either express or implied. See the License for the
15+ # specific language governing permissions and limitations
16+ # under the License.
17+
18+ name : Site CI
19+
20+ on :
21+ push :
22+ branches :
23+ - ' *'
24+ - ' !master'
25+ pull_request :
26+ branches :
27+ - ' *'
28+ - ' !master'
29+
30+ jobs :
31+
32+ site :
33+ runs-on : ubuntu-latest
34+
35+ steps :
36+ - name : Checkout
37+ uses : actions/checkout@v4
38+
39+ - name : Set up JDK
40+ uses : actions/setup-java@v4
41+ with :
42+ java-version : ' 11'
43+ distribution : ' temurin'
44+ cache : ' maven'
45+
46+ - name : Setup deploy
47+ id : setup
48+ if : github.event_name == 'push' && github.repository_owner == 'codehaus-plexus' && github.ref == 'refs/heads/source'
49+ run : |
50+ git config --global user.email "${{ github.event.head_commit.author.email }}"
51+ git config --global user.name "${{ github.event.head_commit.author.name }}"
52+ echo "deploy=-deploy -Dusername=git -Dpassword=${{ github.token }} -Dscmpublish.checkinComment='Site checkin for ${{ github.event.head_commit.id }}'" >> $GITHUB_OUTPUT
53+
54+ - name : Build with Maven
55+ run : mvn --show-version --errors --batch-mode --update-snapshots clean site${{ steps.setup.outputs.deploy }}
You can’t perform that action at this time.
0 commit comments