diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 0b4028a..9eb957c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,6 +1,9 @@ name: Publish to Github Packages -on: [push] +on: + push: + branches: + - master jobs: build: @@ -19,5 +22,6 @@ jobs: env: GITHUB_USERNAME: x-access-token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} run: mvn --settings settings.xml deploy -pl '!brouter-routing-app' diff --git a/pom.xml b/pom.xml index b495775..8e92396 100644 --- a/pom.xml +++ b/pom.xml @@ -159,8 +159,8 @@ github - GitHub OWNER Apache Maven Packages - https://maven.pkg.github.com/cyface-de/brouter + GitHub brouter Apache Maven Packages + https://maven.pkg.github.com/${env.GITHUB_REPOSITORY} diff --git a/settings.xml b/settings.xml index 59d8e41..3ecb113 100644 --- a/settings.xml +++ b/settings.xml @@ -23,7 +23,7 @@ github GitHub Cyface Apache Maven Packages - https://maven.pkg.github.com/cyface-de/brouter + https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}