Skip to content

Commit

Permalink
feat(ci): Add nightly deploy for main and recent release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer committed Feb 1, 2024
1 parent d27eedb commit 911bbd5
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#
# 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: Nightly release

env:
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -e
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
schedule:
- cron: "10 4 * * *"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ref-branch: [main, release-3.6.x, release-3.2.x, release-2.16.x]
env:
NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up JDK 17
uses: AdoptOpenJDK/install-jdk@v1
with:
version: '17'
- name: Deploy to ASF Snapshots Repository
# Deploy both artifacts and sources (may be required by Camel K)
run: |
./mvnw ${MAVEN_ARGS} clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml

0 comments on commit 911bbd5

Please sign in to comment.