We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb1bf01 commit 4f6f106Copy full SHA for 4f6f106
2 files changed
.github/workflows/publish.yml
@@ -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
@@ -22,4 +22,11 @@
22
</dependency>
23
</dependencies>
24
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>
32
</project>
0 commit comments