Skip to content

Commit

Permalink
Merge pull request #17 from erip/feature/publish-artifacts
Browse files Browse the repository at this point in the history
add publishing stub for GitHub Packages.
  • Loading branch information
levyfan authored Jan 18, 2021
2 parents 08d23e2 + 8b1857f commit f5c4972
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish

on:
release:
types: [created]

jobs:
publish:
strategy:
max-parallel: 10
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [8, 9, 10, 11]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Publish package
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,12 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/levyfan/sentencepiece-jni</url>
</repository>
</distributionManagement>
</project>

0 comments on commit f5c4972

Please sign in to comment.