Make Workflow more generic
This commit is contained in:
parent
8a033e311c
commit
aef31e0447
3 changed files with 8 additions and 4 deletions
6
.github/workflows/maven.yml
vendored
6
.github/workflows/maven.yml
vendored
|
@ -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'
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -159,8 +159,8 @@
|
|||
<distributionManagement>
|
||||
<repository>
|
||||
<id>github</id>
|
||||
<name>GitHub OWNER Apache Maven Packages</name>
|
||||
<url>https://maven.pkg.github.com/cyface-de/brouter</url>
|
||||
<name>GitHub brouter Apache Maven Packages</name>
|
||||
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</project>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<repository>
|
||||
<id>github</id>
|
||||
<name>GitHub Cyface Apache Maven Packages</name>
|
||||
<url>https://maven.pkg.github.com/cyface-de/brouter</url>
|
||||
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</profile>
|
||||
|
|
Loading…
Reference in a new issue