Skip to content

Commit e9e21cb

Browse files
committed
fix: fix workflows
Signed-off-by: Phil Adams <[email protected]>
1 parent 3b88a2d commit e9e21cb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ jobs:
3737
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
3838

3939
- name: Set artifact version to ${{ github.ref_name }}
40-
run: mvn versions:set -DnewVersion=${{ github.ref_name}} -DgenerateBackupPoms=false
40+
run: mvn -B versions:set -DnewVersion=${{ github.ref_name}} -DgenerateBackupPoms=false
4141

4242
- name: Publish Javadocs
4343
env:
4444
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4545
GH_REPO_SLUG: ${{ github.repository }}
4646
GH_TAG: ${{ github.ref_name}}
4747
run: |
48-
mvn clean javadoc:javadoc -B
48+
mvn -B clean javadoc:javadoc
4949
build/publishJavadoc-gha.sh
5050
5151
- name: Publish to Maven Central
@@ -55,7 +55,4 @@ jobs:
5555
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
5656
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5757
run: |
58-
echo "Publishing to maven central"
59-
# build only the "verify" goal for now until we're brave enough to try to deploy to MC :)
60-
mvn verify -B -DskipTests -P central
61-
ls -al target
58+
mvn -B deploy -DskipTests -P central

build/publishJavadoc-gha.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GH_REP
99

1010
printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111
rm -fr ./gh-pages
12+
git config --global user.email "[email protected]"
13+
git config --global user.name "ibm-devx-sdk"
1214
git clone --branch=gh-pages https://${GH_TOKEN}@github.com/IBM/java-sdk-core.git gh-pages
1315

1416
printf "\n>>>>> Finished cloning...\n"

0 commit comments

Comments
 (0)