From 91cf9bc76dbbf5e908398740ffa1f60a9ee82135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geir=20Andr=C3=A9=20Lund?= Date: Wed, 20 Dec 2023 10:33:55 +0100 Subject: [PATCH] Bygge kun kontrakter under publiseringsjobb. Sett riktig maven url --- .github/workflows/publish.yaml | 6 ++++-- dp-inntekt-kontrakter/build.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 43cddda9..7860af1b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -9,6 +9,8 @@ jobs: build: name: Build runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -25,7 +27,7 @@ jobs: with: gradle-version: wrapper dependency-graph: generate-and-submit - arguments: --configuration-cache test + arguments: --configuration-cache :dp-inntekt-kontrakter:test release: @@ -60,7 +62,7 @@ jobs: java-version: 17.x cache: 'gradle' - name: publish - run: ./gradlew -Pversion="$(echo ${{ needs.release.outputs.tag }})" publish + run: ./gradlew -Pversion="$(echo ${{ needs.release.outputs.tag }})" :dp-inntekt-kontrakter:publish env: ORG_GRADLE_PROJECT_githubUser: x-access-token ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/dp-inntekt-kontrakter/build.gradle.kts b/dp-inntekt-kontrakter/build.gradle.kts index be25e9e2..333afadb 100644 --- a/dp-inntekt-kontrakter/build.gradle.kts +++ b/dp-inntekt-kontrakter/build.gradle.kts @@ -20,7 +20,7 @@ publishing { repositories { maven { - url = uri("https://maven.pkg.github.com/navikt/dp-inntekt-kontrakter") + url = uri("https://maven.pkg.github.com/navikt/dp-inntekt") credentials { username = githubUser password = githubPassword