Skip to content

Add README to distribution metadata #2

Add README to distribution metadata

Add README to distribution metadata #2

Workflow file for this run

name: Build and Publish Python Package
on:
push:
permissions:
contents: write
id-token: write
jobs:
build:
name: Build wheel and sdist
runs-on: ubuntu-latest
outputs:
version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
id: baipp
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: [build]
environment:
name: pypi
url: https://pypi.org/project/meltanolabs-tap-github/${{ needs.build.outputs.version }}
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload wheel to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Deploy to PyPI
uses: pypa/[email protected]