Skip to content

Commit

Permalink
fix work directory in github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjing2 committed Jun 7, 2024
1 parent 0fc4568 commit 7c49449
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/koupleless_runtime_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,19 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: install with Maven
run: mvn clean install
- name: deploy with Maven
run: mvn --batch-mode deploy -DskipTests -Prelease
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: mvn clean install -DskipTests
# - name: deploy with Maven
# run: mvn --batch-mode deploy -DskipTests -Prelease
# env:
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: checkout adapter repo
uses: actions/checkout@v3
with:
repository: 'koupleless/adapter'
path: 'adapter'

- name: Finding Maven Modules
id: find-maven-modules
run: |
Expand Down Expand Up @@ -140,6 +142,7 @@ jobs:
echo "release for module $module"
mvn --batch-mode deploy -Psnapshot -pl $module -am -amd -B -U
echo "snapshot completed for module $module"
fi
done
working-directory: adapter/
env:
Expand Down

0 comments on commit 7c49449

Please sign in to comment.