|
| 1 | +name: Maven Publish Release |
1 | 2 | on: |
2 | 3 | workflow_dispatch: |
3 | 4 | inputs: |
@@ -40,52 +41,18 @@ jobs: |
40 | 41 | xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 |
41 | 42 | https://maven.apache.org/xsd/settings-1.0.0.xsd"> |
42 | 43 | <servers> |
43 | | - <server> |
44 | | - <id>s3.applause-public-repo</id> |
45 | | - <username>${{ secrets.APPLAUSE_REPO_USER_NAME }}</username> |
46 | | - <password>${{ secrets.APPLAUSE_REPO_PASSWORD }}</password> |
47 | | - </server> |
48 | | - <server> |
49 | | - <id>s3.applause-public-snapshots</id> |
50 | | - <username>${{ secrets.APPLAUSE_REPO_USER_NAME }}</username> |
51 | | - <password>${{ secrets.APPLAUSE_REPO_PASSWORD }}</password> |
52 | | - </server> |
| 44 | + <server> |
| 45 | + <id>s3.applause-public-repo</id> |
| 46 | + <username>${{ secrets.AWS_ACCESS_KEY_ID }}</username> |
| 47 | + <password>${{ secrets.AWS_SECRET_ACCESS_KEY }}</password> |
| 48 | + </server> |
| 49 | + <server> |
| 50 | + <id>s3.applause-public-snapshots</id> |
| 51 | + <username>${{ secrets.AWS_ACCESS_KEY_ID }}</username> |
| 52 | + <password>${{ secrets.AWS_SECRET_ACCESS_KEY }}</password> |
| 53 | + </server> |
53 | 54 | </servers> |
54 | 55 |
|
55 | | -
|
56 | | - <profiles> |
57 | | - <profile> |
58 | | - <activation> |
59 | | - <activeByDefault>true</activeByDefault> |
60 | | - </activation> |
61 | | -
|
62 | | - <repositories> |
63 | | - <repository> |
64 | | - <id>applause-public-repo</id> |
65 | | - <name>Repository for Applause public artifacts (releases)</name> |
66 | | - <url>https://repo.applause.com/repository/public</url> |
67 | | - <releases><enabled>true</enabled></releases> |
68 | | - <snapshots><enabled>false</enabled></snapshots> |
69 | | - </repository> |
70 | | - <repository> |
71 | | - <id>applause-public-snapshots</id> |
72 | | - <name>Repository for Applause public artifacts (snapshots)</name> |
73 | | - <url>https://repo.applause.com/repository/snapshots</url> |
74 | | - <releases><enabled>false</enabled></releases> |
75 | | - <snapshots><enabled>true</enabled></snapshots> |
76 | | - </repository> |
77 | | - </repositories> |
78 | | - <pluginRepositories> |
79 | | - <pluginRepository> |
80 | | - <id>applause-public-repo</id> |
81 | | - <name>Repository for Applause public artifacts (releases)</name> |
82 | | - <url>https://repo.applause.com/repository/public</url> |
83 | | - <releases><enabled>true</enabled></releases> |
84 | | - <snapshots><enabled>false</enabled></snapshots> |
85 | | - </pluginRepository> |
86 | | - </pluginRepositories> |
87 | | - </profile> |
88 | | - </profiles> |
89 | 56 | </settings> |
90 | 57 | EOF |
91 | 58 |
|
|
108 | 75 | git commit -am "GHA: release version \${VERSION}" |
109 | 76 | git tag v\${VERSION} -am "GHA: publish public-$GITHUB_REPO_NAME v\${VERSION}" |
110 | 77 | git log -1 |
111 | | - # git push origin v\${VERSION} |
112 | | - # git push origin HEAD:${{ inputs.branch }} |
| 78 | + git push origin v\${VERSION} |
| 79 | + git push origin HEAD:${{ inputs.branch }} |
113 | 80 |
|
114 | 81 | # Increment incremental version and set SNAPSHOT |
115 | 82 | mvn build-helper:parse-version versions:set -DgenerateBackupPoms=false -DnewVersion=\\${parsedVersion.majorVersion}.\\${parsedVersion.minorVersion}.\\${parsedVersion.nextIncrementalVersion}-SNAPSHOT |
|
121 | 88 | VERSION=`cat VERSION` |
122 | 89 | git commit -am "GHA: SNAPSHOT version \${VERSION}" |
123 | 90 | git diff HEAD^ HEAD |
124 | | - # git push origin HEAD:${{ inputs.branch }} |
| 91 | + git push origin HEAD:${{ inputs.branch }} |
0 commit comments