Skip to content

Commit

Permalink
setup publish to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jan 8, 2021
1 parent 1ad0b70 commit 92afb05
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}

9 changes: 9 additions & 0 deletions src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
<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

0 comments on commit 92afb05

Please sign in to comment.