From d465887a8c97b86689977b4f83e2908995418285 Mon Sep 17 00:00:00 2001 From: "miguel.perez" Date: Thu, 7 Dec 2023 12:38:19 +0100 Subject: [PATCH] improve pipelines --- .github/workflows/deploy-to-maven-central.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy-to-maven-central.yml diff --git a/.github/workflows/deploy-to-maven-central.yml b/.github/workflows/deploy-to-maven-central.yml new file mode 100644 index 000000000..b1f66e8a3 --- /dev/null +++ b/.github/workflows/deploy-to-maven-central.yml @@ -0,0 +1,25 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path + +name: Deploy to Maven Central + +on: + workflow_call: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + - name: Test + run: | + echo $RELEASE_VERSION + echo ${{ env.RELEASE_VERSION }} + + - name: Show context + run: echo '${{ toJson(github.event) }}' +