From dbe86cbffbe7bb818dbe66d43f7cfee2487aeac5 Mon Sep 17 00:00:00 2001 From: Abel Salgado Romero Date: Sun, 21 Jan 2024 10:45:33 +0100 Subject: [PATCH] run on main --- .github/workflows/release.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6e1c1a5b..c0ef7a70 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,10 @@ name: Release -on: workflow_dispatch +#on: workflow_dispatch +on: + push: + branches: + - main permissions: contents: write @@ -44,17 +48,18 @@ jobs: git config user.name "GitHub Actions" - name: Configure GPG key run: echo -e "${{ env.GPG_PRIVATE_KEY }}" | gpg --import --batch - - name: Test git - run: | - timestamp=$(date +"%Y%m%d-%H%M") - echo $timestamp > "report-${timestamp}.txt" - git add . - git commit -am "Automated report" - git push +## Works fine and can commit file +# - name: Test git +# run: | +# timestamp=$(date +"%Y%m%d-%H%M") +# echo $timestamp > "report-${timestamp}.txt" +# git add . +# git commit -am "Automated report" +# git push - name: Build artifacts - run: mvn -B clean verify -Prelease -Dmaven.test.skip + run: mvn clean verify -B -Prelease -Dmaven.test.skip - name: Publish artifacts - run: mvn -B release:prepare release:perform -Darguments="-Prelease -Dmaven.test.skip" + run: mvn release:prepare release:perform -B -Darguments="-Prelease -Dmaven.test.skip" - name: Close release run: | echo "Release completed 🎉"