Skip to content

chore: Make ty happy #560

chore: Make ty happy

chore: Make ty happy #560

Workflow file for this run

name: Upload Python Package
on:
push:
release:
types: [published]
permissions:
contents: write # Needed for uploading files to the release
id-token: write # Needed for OIDC PyPI publishing
jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
fetch-depth: 0
persist-credentials: false
- uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0
id: baipp
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'release'
environment:
name: publishing
url: https://pypi.org/project/meltanolabs-tap-postgres/${{ needs.build.outputs.version }}
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: Packages
path: dist
- uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Deploy to PyPI
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0