Skip to content

Commit b64f98f

Browse files
authored
Setup maven publish workflow
1 parent 94f67cf commit b64f98f

File tree

4 files changed

+28
-244
lines changed

4 files changed

+28
-244
lines changed

.github/workflows/compare.yaml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/maven.yml

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

.github/workflows/test.yml

Lines changed: 0 additions & 221 deletions
This file was deleted.

java/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
</license>
2323
</licenses>
2424

25+
<distributionManagement>
26+
<repository>
27+
<id>github</id>
28+
<name>GitHub Packages</name>
29+
<url>https://maven.pkg.github.com/cory-miller/spoonacular-api-clients</url>
30+
</repository>
31+
</distributionManagement>
32+
2533
<developers>
2634
<developer>
2735
<name>David Urbansky</name>

0 commit comments

Comments
 (0)