diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b42b8e5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish package to GitHub Packages +on: + push: + branches: [master] + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - 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 }} 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 e3c81e9..9321830 100644 --- a/src/pom.xml +++ b/src/pom.xml @@ -15,6 +15,14 @@ 1.8 + + + github + GitHub Packages + https://maven.pkg.github.com/bcgov/spring-boot-starters + + + all 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 + + +