diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 701beee..b42b8e5 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -2,7 +2,8 @@ name: Publish package to GitHub Packages
on:
push:
branches: [master]
- merge:
+ release:
+ types: [created]
jobs:
publish:
runs-on: ubuntu-latest
@@ -11,8 +12,13 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: 1.8
+ - uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Publish package
run: mvn --batch-mode deploy -f src/pom.xml -P all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
\ No newline at end of file
diff --git a/src/bambora-payment-starter/pom.xml b/src/bambora-payment-starter/pom.xml
index 78d36e7..40e9b37 100644
--- a/src/bambora-payment-starter/pom.xml
+++ b/src/bambora-payment-starter/pom.xml
@@ -12,6 +12,14 @@
2.2.4.RELEASE
+
+
+ github
+ GitHub Packages
+ https://maven.pkg.github.com/bcgov/spring-boot-starters
+
+
+
org.springframework.boot
diff --git a/src/pom.xml b/src/pom.xml
index d0a150b..9321830 100644
--- a/src/pom.xml
+++ b/src/pom.xml
@@ -15,7 +15,6 @@
1.8
-
github
diff --git a/src/spring-bceid-starter/pom.xml b/src/spring-bceid-starter/pom.xml
index df04d07..c0b15ec 100644
--- a/src/spring-bceid-starter/pom.xml
+++ b/src/spring-bceid-starter/pom.xml
@@ -17,6 +17,14 @@
1.3.1.Final
+
+
+ github
+ GitHub Packages
+ https://maven.pkg.github.com/bcgov/spring-boot-starters
+
+
+
diff --git a/src/spring-clamav-starter/pom.xml b/src/spring-clamav-starter/pom.xml
index 29ecb2f..87dc4f5 100644
--- a/src/spring-clamav-starter/pom.xml
+++ b/src/spring-clamav-starter/pom.xml
@@ -16,6 +16,14 @@
2.22.0
+
+
+ github
+ GitHub Packages
+ https://maven.pkg.github.com/bcgov/spring-boot-starters
+
+
+
diff --git a/src/spring-sftp-starter/pom.xml b/src/spring-sftp-starter/pom.xml
index 545b38e..5bd69e9 100644
--- a/src/spring-sftp-starter/pom.xml
+++ b/src/spring-sftp-starter/pom.xml
@@ -16,6 +16,14 @@
2.2.4.RELEASE
+
+
+ github
+ GitHub Packages
+ https://maven.pkg.github.com/bcgov/spring-boot-starters
+
+
+
diff --git a/src/spring-starters-bom/pom.xml b/src/spring-starters-bom/pom.xml
index 431a476..a969d7c 100644
--- a/src/spring-starters-bom/pom.xml
+++ b/src/spring-starters-bom/pom.xml
@@ -19,6 +19,14 @@
1.0.1
+
+
+ github
+ GitHub Packages
+ https://maven.pkg.github.com/bcgov/spring-boot-starters
+
+
+