Optimize jobs a little
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-name: Unomi CI - Documentation and publishing
+name: Publish Javadoc and snapshots
on:
push:
branches: [ master, unomi-1.6.x ]
jobs:
- generate-docs:
- name: Generate Javadoc
+ publish-docs-and-snapshots:
+ name: Publish Javadoc and snapshots
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -22,27 +22,14 @@ jobs:
server-password: NEXUS_PW
- name: Generate documentation
run: mvn -U -e clean install -DskipTests javadoc:aggregate source:aggregate
-
- publish-snapshots:
- name: Publish snapshots
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
- with:
- java-version: 1.8
- server-id: apache.snapshots.https
- server-username: NEXUS_USER
- server-password: NEXUS_PW
- name: Build & deploy snapshots
- run: mvn clean install deploy -DskipTests
+ run: mvn deploy -DskipTests
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PW: ${{ secrets.NEXUS_PW }}
publish-docker-image:
- name: Push docker image snapshot
+ name: Push Docker image snapshot
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
