Skip to content

Commit

Permalink
Fiks release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek committed Jun 2, 2022
1 parent 1862558 commit e91dca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup maven
uses: whelk-io/maven-settings-xml-action@v20
with:
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/navikt/fp-felles", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]'
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/${{ github.repository }}", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]'
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
output_file: settings.xml

Expand All @@ -34,6 +34,6 @@ jobs:
REPO_NAME: ${{ github.repository }}
run: |
echo "-- Setting new release version ${NEW_VERSION} for ${REPO_NAME} --"
mvn -B versions:set -DnewVersion="${NEW_VERSION}" -DgenerateBackupPoms=false
mvn versions:set -B -s settings.xml -DnewVersion="${NEW_VERSION}" -DprocessAllModules -DgenerateBackupPoms=false
echo "-- Build, test and deploy release to GPR --"
mvn -B -s settings.xml clean deploy -Dmaven.wagon.http.pool=false
mvn clean deploy -B -s settings.xml -DskipTests
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<repository>
<id>github</id>
<name>Github navikt Maven Packages</name>
<url>https://maven.pkg.github.com/navikt/fp-nare/</url>
<url>https://maven.pkg.github.com/navikt/fp-nare</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit e91dca1

Please sign in to comment.