diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be3ad8c..0b3d427 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,14 +44,13 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):') runs-on: ubuntu-latest steps: - - uses: actions/setup-python@v2 + - uses: actions/checkout@v2 with: - python-version: 3.8 - - name: Checkout code - uses: actions/checkout@v2 - - 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 + fetch-depth: 0 + + - name: Python Semantic Release + uses: relekang/python-semantic-release@master + with: + github_token: ${{ secrets.GH_TOKEN }} + repository_username: __token__ + repository_password: ${{ secrets.PYPI_TOKEN }}