This is an automated email from the ASF dual-hosted git repository.

mibo pushed a commit to branch OLINGO-1636-jdk_upgrade
in repository https://gitbox.apache.org/repos/asf/olingo-odata2.git

commit 61b1ec4e5121646a77684466246852f04578c28a
Author: Iliyan Velichkov <[email protected]>
AuthorDate: Wed Dec 13 11:10:33 2023 +0200

    deploy jars
    
    Signed-off-by: Iliyan Velichkov <[email protected]>
---
 .github/workflows/release.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6666ba01..d993627b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -48,9 +48,28 @@ jobs:
     - name: "Maven: Set Release Version"
       run: mvn versions:set -DnewVersion=${{ 
github.event.inputs.releaseVersion }}
 
+    - name: Setup Maven settings.xml
+      uses: whelk-io/maven-settings-xml-action@v11
+      with:
+        servers:
+          '[
+            {
+              "id": "github",
+              "username": "${env.GITHUB_USERNAME}",
+              "password": "${env.GITHUB_TOKEN}"
+            }
+          ]'
+
     - name: Build Project
       run: mvn clean install
 
+    - name: Publish to GitHub Packages Apache Maven
+      run: mvn deploy
+      env:
+        GITHUB_USERNAME: x-access-token
+        GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
+        BUILD_ENV: 'github-actions'
+
     - name: "Git: Commit Release Version"
       run: |
         git add '**pom.xml'

Reply via email to