Skip to content

Commit 4f6f106

Browse files
committed
Publish library
1 parent fb1bf01 commit 4f6f106

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish package to GitHub Packages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-java@v3
15+
with:
16+
java-version: '8'
17+
distribution: 'temurin'
18+
- name: Publish package
19+
run: mvn --batch-mode deploy
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@
2222
</dependency>
2323
</dependencies>
2424

25+
<distributionManagement>
26+
<repository>
27+
<id>github</id>
28+
<name>GitHub Packages</name>
29+
<url>https://maven.pkg.github.com/sourcegraph-testing/test-java-lib</url>
30+
</repository>
31+
</distributionManagement>
2532
</project>

0 commit comments

Comments
 (0)