From 92afb05c435e6b1333f474b5fa84a5eeefbd87c3 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 8 Jan 2021 07:08:26 -0800 Subject: [PATCH 1/2] setup publish to github packages --- .github/workflows/publish.yml | 18 ++++++++++++++++++ src/pom.xml | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..701beee --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish package to GitHub Packages +on: + push: + branches: [master] + merge: +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 1.8 + - 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/pom.xml b/src/pom.xml index e3c81e9..d0a150b 100644 --- a/src/pom.xml +++ b/src/pom.xml @@ -15,6 +15,15 @@ 1.8 + + + + github + GitHub Packages + https://maven.pkg.github.com/bcgov/spring-boot-starters + + + all From 9874e68f084b7f6b5515e4d1292ec368bebaeaa8 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 8 Jan 2021 07:37:47 -0800 Subject: [PATCH 2/2] set up package deployment update yml distribution management distribution management 2 caching deps removing unused branch --- .github/workflows/publish.yml | 10 ++++++++-- src/bambora-payment-starter/pom.xml | 8 ++++++++ src/pom.xml | 1 - src/spring-bceid-starter/pom.xml | 8 ++++++++ src/spring-clamav-starter/pom.xml | 8 ++++++++ src/spring-sftp-starter/pom.xml | 8 ++++++++ src/spring-starters-bom/pom.xml | 8 ++++++++ 7 files changed, 48 insertions(+), 3 deletions(-) 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 + + +