Set version to 2.25.3.0-SNAPSHOT and add -DallowIncompleteProjects=true #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Builds and pushes docker images on main and tags | |
name: Build on any branch | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'stable' | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Build and publish to github packages | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- name: Deploy to github packages maven repo | |
run: | | |
./mvnw deploy \ | |
--batch-mode -DskipTests -ntp -fae -Dmaven.resolver.transport=wagon \ | |
-DretryFailedDeploymentCount=10 \ | |
-DallowIncompleteProjects=true \ | |
-DaltDeploymentRepository=github::https://maven.pkg.github.com/camptocamp/geoserver-cloud-geoserver | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Remove project jars from cached repository | |
run: | | |
rm -rf ~/.m2/repository/org/geoserver | |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} |