diff --git a/.github/workflows/tests_build.yml b/.github/workflows/tests_build.yml index 86acb94d..a12ca8d5 100644 --- a/.github/workflows/tests_build.yml +++ b/.github/workflows/tests_build.yml @@ -111,9 +111,14 @@ jobs: run: docker run --rm -v "$(pwd):/src" "$BASE_IMAGE_NAME" python setup.py sdist shell: bash - - name: Publish - uses: pypa/gh-action-pypi-publish@release/v1 + - name: 'Deploy package to the Github release' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + uses: svenstaro/upload-release-action@v2 with: - repository_url: ${{ vars.PYPI_REPOSITORY_URL }} - password: ${{ secrets.PYPI_TOKEN }} + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: 'dist/*' + file_glob: true + tag: ${{ github.ref }} ... \ No newline at end of file