From 9664e91bc603151ed8195b56276cd3bc5a390f4c Mon Sep 17 00:00:00 2001 From: Heiko Nickerl Date: Mon, 2 Aug 2021 18:02:34 +0200 Subject: [PATCH] fix: fix build in release job (#182) --- .github/workflows/check.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index bea14f4..90c6c14 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -50,20 +50,24 @@ jobs: message: ${{ steps.type-check.outputs.TYPE_COVERAGE }}% color: orange release: - runs-on: ubuntu-latest needs: check - concurrency: release if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release):') - + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Checkout code + uses: actions/checkout@v2 with: fetch-depth: 0 token: ${{ secrets.ADMIN_GITHUB_TOKEN }} - - - name: Python Semantic Release - uses: relekang/python-semantic-release@master - with: - github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }} - pypi_token: ${{ secrets.PYPI_TOKEN }} - + - name: Semantic Release + run: | + pip install python-semantic-release + git config user.name github-actions + git config user.email github-actions@github.com + semantic-release publish + env: + GH_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}