Skip to content

Publish Snapshot

Publish Snapshot #986

#
# Licensed 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
#
# https://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"
on:
schedule:
- cron: '0 0 * * *'
jobs:
publish-snapshot:
if: ${{ startsWith(github.repository, 'clickhouse/') }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
branch:
- "main"
scala: [ 2.12, 2.13 ]
spark: [ 3.3, 3.4, 3.5 ]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 8
cache: gradle
- name: Publish Snapshot - ${{ matrix.branch }}
run: >-
./gradlew clean publish --no-daemon --refresh-dependencies
-Dscala_binary_version=${{ matrix.scala }}
-Dspark_binary_version=${{ matrix.spark }}
-PmavenUser='${{ secrets.NEXUS_USER }}'
-PmavenPassword='${{ secrets.NEXUS_PW }}'