Skip to content

Commit

Permalink
Try using the new secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF authored Dec 19, 2023
1 parent a013202 commit 70562a9
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/maven_crosstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,22 @@ jobs:
name: crypto-package
path: target/*.jar
retention-days: 7
# # deploy to Maven central
# - name: Set up Apache Maven Central
# uses: actions/setup-java@v4
# with: # running setup-java again overwrites the settings.xml
# distribution: 'temurin'
# java-version: '8'
# server-id: apache.snapshots.https # Value of the distributionManagement/repository/id field of the pom.xml
# server-username: ASF_USERNAME # env variable for username in deploy
# server-password: ASF_PASSWORD # env variable for token in deploy
# deploy to Maven central
- name: Set up Apache Maven Central
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
distribution: 'temurin'
java-version: '8'
# these values cause the plugin to set up the Maven settings.xml file
server-id: apache.snapshots.https # Value of the distributionManagement/repository/id field of the pom.xml
server-username: NEXUS_USER # env variable for username in deploy
server-password: NEXUS_PW # env variable for token in deploy

# - name: Publish to Apache Maven Central
# env:
# ASF_USERNAME: ${{ secrets.NEXUS_USER }}
# ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
# run: mvn package deploy -DskipTests
- name: Publish to Apache Maven Central
env:
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PW: ${{ secrets.NEXUS_PW }}
run: mvn package deploy -DskipTests

# Test Jobs that don't use Docker
standalone:
Expand Down

0 comments on commit 70562a9

Please sign in to comment.