Skip to content

Commit

Permalink
some fixes and chain jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
SrRapero720 committed Nov 19, 2024
1 parent 13da24d commit 8d354d6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ permissions:
jobs:
building:
runs-on: ubuntu-latest
steps:
- name: Checkout Tag
uses: actions/checkout@v3

- name: Set up JDK (21)
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'microsoft'

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Build CI
run: ./gradlew build

publishing:
needs: ['building']
runs-on: ubuntu-latest

steps:
- name: Checkout Tag
Expand All @@ -25,8 +44,8 @@ jobs:
- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Release on Maven
run: ./gradlew publish
- name: Release to Github packages
run: ./gradlew publish --parallel
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ publishing {
}
repositories {
maven {
name = "GitHub Packages"
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/${github}")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
Expand Down

0 comments on commit 8d354d6

Please sign in to comment.