Skip to content

Commit e7125ad

Browse files
committed
Prøver å bygge artifacts, så delpoye
1 parent 4136ade commit e7125ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-kontrakt.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ jobs:
1818
distribution: 'temurin'
1919
java-version: '21'
2020
cache: 'maven'
21+
- name: Build artifacts
22+
run: mvn clean install -DskipTests --settings ./.github/.m2/settings.xml --file pom.xml
23+
env:
24+
GH_ACCESS_TOKEN: ${{ secrets.READER_TOKEN }}
2125
- name: Publish artifacts
2226
shell: bash
2327
run: |
2428
mvn deploy -e --batch-mode --settings ./.github/.m2/settings.xml --file pom.xml -am -pl kontrakt -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8 -DdeployAtEnd=true
2529
env:
2630
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
GH_ACCESS_TOKEN: ${{ secrets.READER_TOKEN }}
31+
GH_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2832
NEW_VERSION: ${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)