Skip to content

Commit

Permalink
ci: publish to github package (#5)
Browse files Browse the repository at this point in the history
* ci: publish to github package

Signed-off-by: TennyZhuang <[email protected]>

* update pom

Signed-off-by: TennyZhuang <[email protected]>

Signed-off-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang authored Nov 15, 2022
1 parent b5b3488 commit 34a5170
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -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 }}
11 changes: 9 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
<version>1.0-SNAPSHOT</version>

<name>sqllogictest-jdbc-runner</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<url>https://github.com/risinglightdb/sqllogictest-rs</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -113,4 +112,12 @@
</plugin>
</plugins>
</build>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/risinglightdb/sqllogictest-driver-jdbc</url>
</repository>
</distributionManagement>
</project>

0 comments on commit 34a5170

Please sign in to comment.