############################################################################## # Copyright 2024 ztsh.eu # # # # 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 # # # # 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. # ############################################################################## variables: &maven_image maven:3.9.6-eclipse-temurin-17-alpine when: evaluate: 'not (CI_COMMIT_MESSAGE contains "Release")' steps: - name: build image: *maven_image commands: - mvn -B clean install -DskipTests -Dmaven.test.skip - name: test image: *maven_image commands: - mvn -B verify - name: deploy to public image: *maven_image commands: - mvn -B jar:jar deploy:deploy -P public secrets: [ reposilite_user, reposilite_token ] when: branch: [ dev, master ] - name: deploy to releases image: woodpeckerci/plugin-gitea-release settings: base-url: https://git.ztsh.eu files: - "hazelcast/target/hazelcast*.jar" - "time/target/time*.jar" api_key: from_secret: git_pat when: - event: tag