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