Skip to content

Commit

Permalink
add pypi release to workflow (dbt-labs#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop authored Dec 15, 2022
1 parent 294b4f8 commit ac04793
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,22 +190,23 @@ jobs:
changelog_path: ${{ inputs.changelog_path }}
test_run: ${{ inputs.test_run }}

# Skipping this for now until we've proven build work in the repos
# pypi-release:
# name: Pypi release
pypi-release:
name: Pypi release
# only release to PyPi if we're not testing - will release to PyPi test when workflow gets rewritten
if: inputs.test_run == 'false'

# runs-on: ubuntu-latest
runs-on: ubuntu-latest

# needs: github-release
needs: github-release

# environment: PypiProd
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: dist
# path: 'dist'
environment: PypiProd
steps:
- uses: actions/download-artifact@v2
with:
name: dist
path: 'dist'

# - name: Publish distribution to PyPI
# uses: pypa/[email protected]
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish distribution to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ac04793

Please sign in to comment.