Skip to content

Commit 0458e5d

Browse files
committed
Rename workflows and update publish process
Renamed deploy.yml to publish.yml and build.yml to validate.yml for clarity. Updated the publish workflow to configure Maven settings and adjusted the Maven publish command to skip tests and disable browser opening. Minor cleanup in pom.xml.
1 parent f502d89 commit 0458e5d

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/deploy.yml renamed to .github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
branches:
1414
- main
1515
jobs:
16-
build:
16+
publish:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: write
@@ -61,9 +61,18 @@ jobs:
6161
git config user.email [email protected]
6262
git commit -m "Updated version in pom.xml" -a
6363
git push
64+
- name: Configure Maven Settings
65+
66+
with:
67+
servers: |
68+
[{
69+
"id": "central",
70+
"username": "${{ secrets.OSSRH_USERNAME }}",
71+
"password": "${{ secrets.OSSRH_TOKEN }}"
72+
}]
6473
- name: Publish package
6574
run: |
66-
mvn --batch-mode -pl turing-commons,turing-java-sdk,turing-aem-commons -P release -am deploy -Dgpg.passphrase="${GPG_PASSPHRASE}"
75+
mvn --batch-mode -pl turing-commons,turing-java-sdk,turing-aem-commons -P release -am deploy -DskipTests -Dturing.open-browser=false
6776
# cd turing-js-sdk/js-sdk-lib
6877
# npm publish
6978
env:

.github/workflows/build.yml renamed to .github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
pull_request:
1515
types: [opened, synchronize, reopened]
1616
jobs:
17-
build:
17+
validate:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v5

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@
210210
</profile>
211211
</profiles>
212212
<dependencyManagement>
213-
214213
<dependencies>
215214
<dependency>
216215
<groupId>ch.qos.logback</groupId>

0 commit comments

Comments
 (0)