devops: revert changes for testing
-name: CellBase Main development workflow
+name: CellBase develop main workflow
on:
push:
@@ -46,7 +46,7 @@ jobs:
- name: Build with Maven
run: mvn -T 2 clean install -Dcheckstyle.skip
deploy:
- name: Build and deploy CellBase libs, Java docs and Docker images in Maven Central and DockerHub repositories
+ name: Build and Deploy CellBase libs, Javadocs and Docker images in Maven Central and DockerHub repositories
runs-on: ubuntu-18.04
needs: test
steps:
@@ -57,28 +57,28 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
-# server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
-# server-username: MAVEN_NEXUS_USER # env variable for username in deploy
-# server-password: MAVEN_NEXUS_PASSWORD # env variable for token in deploy
+ server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+ server-username: MAVEN_NEXUS_USER # env variable for username in deploy
+ server-password: MAVEN_NEXUS_PASSWORD # env variable for token in deploy
## IMPORTANT: this creates the 'build' installation folder and must be the FIRST action!
## Deploy in Maven repository
- - name: Deploy to Maven Central respository
- uses: samuelmeuli/action-maven-publish@v1
- with:
- nexus_username: ${{ secrets.MAVEN_NEXUS_USER }}
- nexus_password: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
- gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- gpg_passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- server_id: ossrh
- maven_args: -DskipTests
-# - name: Copy GPG Private key
-# run: echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > private-key.txt && gpg --import --no-tty --batch --yes private-key.txt
# - name: Deploy to Maven Central respository
-# env:
-# MAVEN_NEXUS_USER: ${{ secrets.MAVEN_NEXUS_USER }}
-# MAVEN_NEXUS_PASSWORD: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
-# run: mvn clean deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} -DskipTests -P deploy
+# uses: samuelmeuli/action-maven-publish@v1
+# with:
+# nexus_username: ${{ secrets.MAVEN_NEXUS_USER }}
+# nexus_password: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
+# gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
+# gpg_passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
+# server_id: ossrh
+# maven_args: -DskipTests
+ - name: Copy GPG Private key
+ run: echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > private-key.txt && gpg --import --no-tty --batch --yes private-key.txt
+ - name: Deploy to Maven Central respository
+ env:
+ MAVEN_NEXUS_USER: ${{ secrets.MAVEN_NEXUS_USER }}
+ MAVEN_NEXUS_PASSWORD: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
+ run: mvn clean deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} -DskipTests -P deploy
## Build and deploy Docker images to DockerHub
- name: Login to dockerhub
