Skip to content

Commit

Permalink
set up package deployment
Browse files Browse the repository at this point in the history
update yml


distribution management


distribution management 2


caching deps


removing unused branch
  • Loading branch information
alex committed Jan 8, 2021
1 parent 92afb05 commit 9874e68
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish package to GitHub Packages
on:
push:
branches: [master]
merge:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -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 }}

8 changes: 8 additions & 0 deletions src/bambora-payment-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
<spring-boot.version>2.2.4.RELEASE</spring-boot.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/bcgov/spring-boot-starters</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
1 change: 0 additions & 1 deletion src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<java.version>1.8</java.version>
</properties>


<distributionManagement>
<repository>
<id>github</id>
Expand Down
8 changes: 8 additions & 0 deletions src/spring-bceid-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
<org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/bcgov/spring-boot-starters</url>
</repository>
</distributionManagement>

<dependencies>

<dependency>
Expand Down
8 changes: 8 additions & 0 deletions src/spring-clamav-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
<org.apache.maven.plugins.version.version>2.22.0</org.apache.maven.plugins.version.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/bcgov/spring-boot-starters</url>
</repository>
</distributionManagement>

<dependencies>

<dependency>
Expand Down
8 changes: 8 additions & 0 deletions src/spring-sftp-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
<spring-boot.version>2.2.4.RELEASE</spring-boot.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/bcgov/spring-boot-starters</url>
</repository>
</distributionManagement>

<dependencies>

<dependency>
Expand Down
8 changes: 8 additions & 0 deletions src/spring-starters-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
<fi.solita.clamav>1.0.1</fi.solita.clamav>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/bcgov/spring-boot-starters</url>
</repository>
</distributionManagement>

<dependencyManagement>
<dependencies>

Expand Down

0 comments on commit 9874e68

Please sign in to comment.