add publish workflow
This commit is contained in:
parent
b968a15bf5
commit
5bdc429502
2 changed files with 24 additions and 1 deletions
23
.github/workflows/publish.yml
vendored
Normal file
23
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: publish
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: set up java
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'adopt'
|
||||
- name: build with maven
|
||||
run: mvn --batch-mode --file pom.xml package
|
||||
- name: publish to github packages
|
||||
run: mvn --batch-mode --file pom.xml deploy
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}⏎
|
2
pom.xml
2
pom.xml
|
@ -46,7 +46,7 @@
|
|||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<revision>1.0.0-SNAPSHOT</revision>
|
||||
<revision>1.0.0</revision>
|
||||
<keycloak.version>13.0.1</keycloak.version>
|
||||
</properties>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue