From 0ea92f6de18b76e50d3f3dbd5abb4c133e81ed7d Mon Sep 17 00:00:00 2001 From: Atticus Zhou <119986792+Atticuszz@users.noreply.github.com> Date: Thu, 11 Jan 2024 21:16:54 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9AUpdate=20ci.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0f7d7a..c155e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,12 @@ jobs: uses: abatilo/actions-poetry@v2.4.0 with: poetry-version: 1.7.1 + + - name: Python Semantic Release (Generate Changelog) + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + uses: python-semantic-release/python-semantic-release@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Run Tests run: poetry run tests @@ -35,11 +41,7 @@ jobs: - name: Upload Coverage uses: codecov/codecov-action@v1 - - name: Python Semantic Release (Generate Changelog) - if: github.ref == 'refs/heads/main' && github.event_name == 'push' - uses: python-semantic-release/python-semantic-release@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} + publish: needs: test-and-changelog