From d545c69727a69b3ee92f542c3b6eb5bd2080d76c Mon Sep 17 00:00:00 2001 From: VoperAD Date: Fri, 17 Nov 2023 14:11:40 +0100 Subject: [PATCH] fix: update release workflow logic --- .github/workflows/release.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e996663..f4c2a1f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,17 +3,17 @@ on: push: branches: - main - workflow_run: - workflows: [Java CI] - types: [completed] +# workflow_run: +# workflows: [Java CI] +# types: [completed] permissions: contents: write jobs: - on-success: + release: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + needs: build steps: - uses: actions/checkout@v4.1.1 @@ -61,10 +61,4 @@ jobs: tag: ${{ steps.changelog.outputs.tag }} name: ${{ steps.changelog.outputs.tag }} body: ${{ steps.changelog.outputs.clean_changelog }} - artifacts: "target/${{ steps.project.outputs.artifact }}-${{ steps.changelog.outputs.version }}.jar" - - on-failure: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - steps: - - run: echo 'The triggering workflow failed' \ No newline at end of file + artifacts: "target/${{ steps.project.outputs.artifact }}-${{ steps.changelog.outputs.version }}.jar" \ No newline at end of file