Skip to content

Commit

Permalink
Merge pull request #26 from bcgov/publish
Browse files Browse the repository at this point in the history
publish package to github package
  • Loading branch information
TayGov authored Jan 8, 2021
2 parents 1ad0b70 + 9874e68 commit 74bf9b0
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
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
8 changes: 8 additions & 0 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
<java.version>1.8</java.version>
</properties>

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

<profiles>
<profile>
<id>all</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 74bf9b0

Please sign in to comment.