Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Jan 2, 2025
1 parent 19d8016 commit b69a107
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish package to GitHub Packages
on:
push:
release:
types: [created]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Install Harden-Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: audit
- name: Check out code and set up JDK and Maven
uses: s4u/setup-maven-action@9a27433d289dd99d73851f653607c39d3444e8ba # v1.17.0
with:
java-version: |
25-ea
17.0.13
java-distribution: temurin
maven-version: 3.9.9
- name: Publish package
run: mvn -B deploy -DaltDeploymentRepository=github::https://maven.pkg.github.com/PicnicSupermarket/error-prone
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Remove installed project artifacts
run: mvn dependency:purge-local-repository -DmanualInclude='${project.groupId}' -DresolutionFuzziness=groupId
2 changes: 1 addition & 1 deletion check_api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
<id>default-compile</id>
<configuration>
<jdkToolchain>
<version>17</version>
<version>17.0.13</version>
</jdkToolchain>
</configuration>
</execution>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@
<configuration>
<toolchains>
<jdk>
<version>17</version>
<version>25</version>
<version>17.0.13</version>
<version>25-ea</version>
</jdk>
</toolchains>
</configuration>
Expand Down

0 comments on commit b69a107

Please sign in to comment.