Add action to automatically publish snapshots (#1054)
This commit is contained in:
parent
2923a4c16f
commit
d12851c77e
2 changed files with 28 additions and 8 deletions
22
.github/workflows/publish.yml
vendored
Normal file
22
.github/workflows/publish.yml
vendored
Normal 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 }}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue