Add action to automatically publish snapshots (#1054)

This commit is contained in:
Jon Koops 2021-09-08 17:50:48 +02:00 committed by GitHub
parent 2923a4c16f
commit d12851c77e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 8 deletions

22
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: Publish package
on:
push:
branches: [master]
defaults:
run:
working-directory: keycloak-theme
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt
- run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -20,7 +20,7 @@
<groupId>org.keycloak</groupId>
<artifactId>keycloak-admin-ui</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>16.0.0-SNAPSHOT</version>
<name>Keycloak Administration UI</name>
<licenses>
@ -31,15 +31,13 @@
</license>
</licenses>
<repositories>
<distributionManagement>
<repository>
<id>jboss</id>
<url>https://repository.jboss.org/nexus/content/groups/public/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/keycloak/keycloak-admin-ui</url>
</repository>
</repositories>
</distributionManagement>
<build>
<plugins>