diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35c1d79f..4486d50b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,32 +64,3 @@ jobs: ```sh $ pip install dbt-trino==${{env.version_number}} ``` - - pypi-release: - name: Pypi release - runs-on: ubuntu-latest - needs: github-release - environment: PypiProd - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Get dbt-trino version - run: echo "version_number=$(cat dbt/adapters/trino/__version__.py | sed -n 's/version = "\(.*\)\"/\1/p')" >> $GITHUB_ENV - - - name: Release to pypi - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} - run: | - python3 -m venv env - source env/bin/activate - pip install -r dev_requirements.txt - pip install twine wheel setuptools - python setup.py sdist bdist_wheel - twine upload --non-interactive dist/dbt_trino-${{env.version_number}}-py3-none-any.whl dist/dbt-trino-${{env.version_number}}.tar.gz