diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9ea3cb04..35a18d45 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,5 @@ name: Publish on: - push: release: types: [published] @@ -31,8 +30,15 @@ jobs: - name: Configure Maven settings run: | mkdir -p ~/.m2 - cp .github/settings.xml ~/.m2/settings.xml - working-directory: Xero-Java + echo " + + + ossrh + ${{ secrets.MAVEN_USERNAME }} + ${{ secrets.MAVEN_TOKEN }} + + + " > ~/.m2/settings.xml - name: Publish to Maven run: |