diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..f6823740 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,35 @@ +name: Publish package to GitHub Packages + +on: + push: + branches: + - main + pull_request: + +jobs: + publish: + name: Publish package to GitHub Packages + runs-on: ubuntu-20.04 + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Extract metadata to env variables + uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1 + + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: "11" + java-package: jdk + architecture: x64 + + - name: Publish to Github Packages + # if: ${{ github.ref == 'refs/heads/main' }} + run: | + # temporarily removing unit tests from the process as a dependent package (pubsub-emulator) is unavailable + # -s settings.xml + mvn --batch-mode -DskipTests -Dentur.google.pubsub.emulator.download.skip=true deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/calendar-helper/pom.xml b/calendar-helper/pom.xml index 41a4d5ad..fdffc36e 100644 --- a/calendar-helper/pom.xml +++ b/calendar-helper/pom.xml @@ -21,7 +21,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT .. diff --git a/camel-entur-google-pubsub/pom.xml b/camel-entur-google-pubsub/pom.xml index ad5db334..3226f3f7 100644 --- a/camel-entur-google-pubsub/pom.xml +++ b/camel-entur-google-pubsub/pom.xml @@ -24,7 +24,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT diff --git a/camel3-entur-google-pubsub/pom.xml b/camel3-entur-google-pubsub/pom.xml index b27727ad..396b838f 100644 --- a/camel3-entur-google-pubsub/pom.xml +++ b/camel3-entur-google-pubsub/pom.xml @@ -24,7 +24,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT diff --git a/entur-google-pubsub/pom.xml b/entur-google-pubsub/pom.xml index 3c3a7bf6..d67c45b8 100644 --- a/entur-google-pubsub/pom.xml +++ b/entur-google-pubsub/pom.xml @@ -22,7 +22,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ 4.0.0 org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT diff --git a/gcp-storage/pom.xml b/gcp-storage/pom.xml index 8503f3d9..e3fe60f0 100644 --- a/gcp-storage/pom.xml +++ b/gcp-storage/pom.xml @@ -21,7 +21,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT .. diff --git a/hazelcast-helper/pom.xml b/hazelcast-helper/pom.xml index c0ad812c..b590fc6e 100644 --- a/hazelcast-helper/pom.xml +++ b/hazelcast-helper/pom.xml @@ -21,7 +21,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT .. diff --git a/hazelcast4-helper/pom.xml b/hazelcast4-helper/pom.xml index 63b2c48f..fcc39be5 100644 --- a/hazelcast4-helper/pom.xml +++ b/hazelcast4-helper/pom.xml @@ -21,7 +21,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT .. diff --git a/logging/pom.xml b/logging/pom.xml index f7ee76d5..91dd13d0 100644 --- a/logging/pom.xml +++ b/logging/pom.xml @@ -2,7 +2,7 @@ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT .. diff --git a/oauth2/pom.xml b/oauth2/pom.xml index d6cfccc4..daf362ba 100644 --- a/oauth2/pom.xml +++ b/oauth2/pom.xml @@ -1,7 +1,7 @@ - helper + jore4-tiamat-rutebanken-helpers org.entur.ror.helpers 1.89-SNAPSHOT diff --git a/organisation/pom.xml b/organisation/pom.xml index 4bf0069a..a9bc1244 100644 --- a/organisation/pom.xml +++ b/organisation/pom.xml @@ -21,7 +21,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT .. diff --git a/pom.xml b/pom.xml index a6a5e958..9c2fac5a 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT pom @@ -69,14 +69,14 @@ - central - entur2-releases - https://entur2.jfrog.io/entur2/libs-release-local + github + GitHub Packages + https://maven.pkg.github.com/hsldevcom/jore4-tiamat-rutebanken-helpers - snapshots - entur2-snapshots - https://entur2.jfrog.io/entur2/libs-snapshot-local + snapshot + GitHub Packages + https://maven.pkg.github.com/hsldevcom/jore4-tiamat-rutebanken-helpers @@ -189,7 +189,7 @@ - + true - + --> diff --git a/settings.xml b/settings.xml new file mode 100644 index 00000000..f1445ae8 --- /dev/null +++ b/settings.xml @@ -0,0 +1,32 @@ + + + + github + + + + + github + + + github + https://maven.pkg.github.com/hsldevcom/jore4-tiamat-rutebanken-helpers + + true + + + + + + + + + github + pallost + ${env.github-token} + + + \ No newline at end of file diff --git a/slack/pom.xml b/slack/pom.xml index e5360040..9a8148cb 100644 --- a/slack/pom.xml +++ b/slack/pom.xml @@ -21,7 +21,7 @@ Inspired by: https://github.com/fabric8io/ipaas-quickstarts/ org.entur.ror.helpers - helper + jore4-tiamat-rutebanken-helpers 1.89-SNAPSHOT ..