From bd643206bc427cb125407cb21664dc1a0781b605 Mon Sep 17 00:00:00 2001 From: Caibin Sheng Date: Wed, 14 Aug 2024 10:47:58 +0200 Subject: [PATCH] fix(workflow): update semantic release --- .github/workflows/semantic-release.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml index adc3c59..aa29288 100644 --- a/.github/workflows/semantic-release.yaml +++ b/.github/workflows/semantic-release.yaml @@ -20,8 +20,10 @@ jobs: with: fetch-depth: 0 - name: Python Semantic Release - uses: relekang/python-semantic-release@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - repository_username: __token__ - repository_password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + run: | + semantic-release publish \ + --github_token $GITHUB_TOKEN \ + --pypi_token $PYPI_TOKEN \ No newline at end of file