This is an automated email from the ASF dual-hosted git repository.
veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push:
new f11a0e1 Set up Github Actions to deploy snapshots to Nexus
f11a0e1 is described below
commit f11a0e170a75017b704abb497190df9b5f613571
Author: Andreas Veithen <[email protected]>
AuthorDate: Sun Jan 3 15:54:11 2021 +0000
Set up Github Actions to deploy snapshots to Nexus
---
.github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 58fa126..b391f7c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -46,3 +46,33 @@ jobs:
run: mvn -B -e -Papache-release -Dgpg.skip=true verify
- name: Remove Snapshots
run: find ~/.m2/repository -name '*-SNAPSHOT' -a -type d -print0 | xargs
-0 rm -rf
+ deploy:
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
+ name: Deploy
+ runs-on: ubuntu-18.04
+ needs: build
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Cache Maven Repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: maven-deploy-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ maven-deploy-
+ maven-
+ - name: Set up Java
+ uses: actions/setup-java@v1
+ with:
+ java-version: 15
+ server-id: apache.snapshots.https
+ server-username: NEXUS_USER
+ server-password: NEXUS_PW
+ - name: Deploy
+ run: mvn -B -e -Papache-release -Dgpg.skip=true -DskipTests=true deploy
+ env:
+ NEXUS_USER: ${{ secrets.NEXUS_USER }}
+ NEXUS_PW: ${{ secrets.NEXUS_PW }}
+ - name: Remove Snapshots
+ run: find ~/.m2/repository -name '*-SNAPSHOT' -a -type d -print0 | xargs
-0 rm -rf