From 5b816fa9069f41c16697cc7c2e14aa269fc5fc77 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 28 Sep 2021 21:50:52 +0100 Subject: [PATCH] ci: :construction_worker: Added the release step --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24d861890..6260d7168 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,17 +56,18 @@ jobs: cd src dotnet test --logger trx --results-directory "TestResults" - - name: Upload dotnet test results - uses: actions/upload-artifact@v2 - with: - name: dotnet-results - path: src/TestResults - # Use always() to always run this step to publish test results when there are test failures - if: ${{ always() }} + ## Don't need yet + # - name: Upload dotnet test results + # uses: actions/upload-artifact@v2 + # with: + # name: dotnet-results + # path: src/TestResults + # # Use always() to always run this step to publish test results when there are test failures + # if: ${{ always() }} publish: runs-on: ubuntu-latest - needs: [build-ui] + needs: [ build-ui ] strategy: matrix: include: @@ -134,3 +135,20 @@ jobs: path: | ./src/Ombi/${{ matrix.os }}.${{ matrix.format }} + release: + needs: [ publish, unit-test ] + runs-on: ubuntu-latest + steps: + - name: Conventional Changelog Action + uses: TriPSs/conventional-changelog-action@v3 + with: + github-token: ${{ secrets.github_token }} + git-message: 'chore(release): {version}' + + - name: Download Artifacts + uses: actions/download-artifact@v2 + with: + path: artifacts + + +