Skip to content

Commit

Permalink
Merge pull request #785 from thadguidry/add-snapshot-workflow
Browse files Browse the repository at this point in the history
fix error not publishing correctly to GitHub Packages
  • Loading branch information
thadguidry authored Nov 12, 2024
2 parents 10e4177 + 22fe0ee commit 71a5490
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
distribution: 'liberica'
java-version: 21
cache: 'maven'
server-id: github

- name: Compile & Deploy to GitHub Packages
run: mvn -Drevision=${{ github.event.inputs.version }} -B deploy --file pom.xml
run: mvn -Drevision=${{ github.event.inputs.version }} -B deploy -DdeployAtEnd --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,21 @@
</issueManagement>

<distributionManagement>
<snapshotRepository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/9tigerio/db2rest</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</snapshotRepository>
<repository>
<id>central</id>
<name>Central Portal</name>
<url>https://central.sonatype.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</distributionManagement>

Expand Down

0 comments on commit 71a5490

Please sign in to comment.