Make Workflow more generic

This commit is contained in:
Klemens Muthmann 2020-01-28 10:46:56 +01:00
parent 8a033e311c
commit aef31e0447
3 changed files with 8 additions and 4 deletions

View file

@ -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'

View file

@ -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>

View file

@ -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>