From 34a5170315b67354615ad9a7321d2641b7fa5efb Mon Sep 17 00:00:00 2001 From: TennyZhuang Date: Tue, 15 Nov 2022 18:07:31 +0800 Subject: [PATCH] ci: publish to github package (#5) * ci: publish to github package Signed-off-by: TennyZhuang * update pom Signed-off-by: TennyZhuang Signed-off-by: TennyZhuang --- .github/workflows/maven-publish.yml | 20 ++++++++++++++++++++ pom.xml | 11 +++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..b6bf6e7 --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,20 @@ +name: Publish package to GitHub Packages +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '19' + distribution: 'temurin' + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 14011b8..ead822d 100644 --- a/pom.xml +++ b/pom.xml @@ -9,8 +9,7 @@ 1.0-SNAPSHOT sqllogictest-jdbc-runner - - http://www.example.com + https://github.com/risinglightdb/sqllogictest-rs UTF-8 @@ -113,4 +112,12 @@ + + + + github + GitHub Packages + https://maven.pkg.github.com/risinglightdb/sqllogictest-driver-jdbc + +