From 8b1857f53f971236cf762219cb91815cc981a5ad Mon Sep 17 00:00:00 2001 From: Elijah Rippeth Date: Fri, 15 Jan 2021 11:14:56 -0500 Subject: [PATCH] add publishing stub for GitHub Packages. --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ pom.xml | 7 +++++++ 2 files changed, 32 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..632fd2e --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/pom.xml b/pom.xml index 160c2a4..0a8afe7 100644 --- a/pom.xml +++ b/pom.xml @@ -152,5 +152,12 @@ UTF-8 + + + github + GitHub Packages + https://maven.pkg.github.com/levyfan/sentencepiece-jni + +