Skip to content

Commit 91cf9bc

Browse files
committed
Bygge kun kontrakter under publiseringsjobb. Sett riktig maven url
1 parent c8c3dc2 commit 91cf9bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/publish.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build:
1010
name: Build
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- name: Checkout code
1416
uses: actions/checkout@v4
@@ -25,7 +27,7 @@ jobs:
2527
with:
2628
gradle-version: wrapper
2729
dependency-graph: generate-and-submit
28-
arguments: --configuration-cache test
30+
arguments: --configuration-cache :dp-inntekt-kontrakter:test
2931

3032

3133
release:
@@ -60,7 +62,7 @@ jobs:
6062
java-version: 17.x
6163
cache: 'gradle'
6264
- name: publish
63-
run: ./gradlew -Pversion="$(echo ${{ needs.release.outputs.tag }})" publish
65+
run: ./gradlew -Pversion="$(echo ${{ needs.release.outputs.tag }})" :dp-inntekt-kontrakter:publish
6466
env:
6567
ORG_GRADLE_PROJECT_githubUser: x-access-token
6668
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}

dp-inntekt-kontrakter/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ publishing {
2020

2121
repositories {
2222
maven {
23-
url = uri("https://maven.pkg.github.com/navikt/dp-inntekt-kontrakter")
23+
url = uri("https://maven.pkg.github.com/navikt/dp-inntekt")
2424
credentials {
2525
username = githubUser
2626
password = githubPassword

0 commit comments

Comments
 (0)