diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-container.yml similarity index 98% rename from .github/workflows/ci-deploy.yml rename to .github/workflows/ci-container.yml index a81af4f361c..21b41b67390 100644 --- a/.github/workflows/ci-deploy.yml +++ b/.github/workflows/ci-container.yml @@ -1,8 +1,8 @@ -name: Deploy +name: Publish Container on: [push, pull_request] jobs: build: - name: Build and Test Images + name: Test and Publish Container Images runs-on: ubuntu-latest # NOTE (DP): Publish on develop and master, test on PRs against these # TODO(DP) Reinstate CRONed release builds to update stock apps regularly @@ -77,4 +77,4 @@ jobs: # DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} # run: mvn -q -Ddocker.tag=experimental -Ddocker.username=$DOCKER_USERNAME -Ddocker.password=$DOCKER_PASSWORD docker:build docker:push # working-directory: ./exist-docker - + diff --git a/.github/workflows/ci-snapshots.yml b/.github/workflows/ci-snapshots.yml new file mode 100644 index 00000000000..31b6df8bb02 --- /dev/null +++ b/.github/workflows/ci-snapshots.yml @@ -0,0 +1,30 @@ +name: Publish Snaphots to Github Packages + +on: + push: + branches: + - develop + workflow_dispatch: # Allow manual triggering + +jobs: + publish-snapshots: + name: Deploy Snapshots + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/develop' + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: liberica + java-version: '17' + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2 + key: deploy-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: deploy-${{ runner.os }}-maven + - name: Deploy SNAPSHOT maven artefacts + run: mvn -V -B -q -DskipTests -Ddependency-check.skip=true -P !mac-dmg-on-unix,!installer,!concurrency-stress-tests,!micro-benchmarks,skip-build-dist-archives clean deploy diff --git a/exist-parent/pom.xml b/exist-parent/pom.xml index b1c402142f5..a8f2cee2404 100644 --- a/exist-parent/pom.xml +++ b/exist-parent/pom.xml @@ -1177,6 +1177,17 @@ + + github + GitHub Registry for Snapshots + https://maven.pkg.github.com/eXist-db/exist + + false + + + true + + exist-db-snapshots Evolved Binary - eXist-db Snapshots @@ -1228,13 +1239,24 @@ true + + github + GitHub Registry for Snapshots + https://maven.pkg.github.com/eXist-db/exist + + false + + + true + + - exist-db-snapshots - Evolved Binary - eXist-db Snapshots - https://repo.evolvedbinary.com/repository/exist-db-snapshots/ + github + GitHub Registry for Snapshots + https://maven.pkg.github.com/eXist-db/exist sonatype-nexus-staging