You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/build.yml
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -35,21 +35,40 @@ jobs:
35
35
java-version: 11
36
36
distribution: temurin
37
37
cache: maven
38
+
server-id: apache.snapshots.https # Value of the distributionManagement/repository/id field of the pom.xml
39
+
server-username: MAVEN_APACHE_NEXUS_USERNAME # env variable for username in deploy
40
+
server-password: MAVEN_APACHE_NEXUS_PASSWORD # env variable for token in deploy
41
+
# sets environment variables to be used in subsequent steps: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
42
+
- name: Set environment variables
43
+
shell: bash
44
+
run: |
45
+
if [ "${{github.ref}}" = "refs/pull/1935/merge" ] && [ "${{github.event_name}}" = "pull_request" ] && [ "${{github.repository_owner}}" = "apache" ]; then
46
+
echo 'Running on main branch of the canonical repo'
0 commit comments