feat: introduce function in Tap to convert input catalog to Stream ob… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| permissions: {} | |
| jobs: | |
| build: | |
| name: Build artifacts | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.baipp.outputs.package_version }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: hynek/build-and-inspect-python-package@b5076c307dc91924a82ad150cdd1533b444d3310 # v2.12.0 | |
| id: baipp | |
| provenance: | |
| name: Provenance | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| if: startsWith(github.ref, 'refs/tags/') | |
| permissions: | |
| id-token: write # Needed for attestations | |
| attestations: write # Needed for attestations | |
| outputs: | |
| bundle-path: ${{ steps.attest.outputs.bundle-path }} | |
| steps: | |
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | |
| with: | |
| name: Packages | |
| path: dist | |
| - uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0 | |
| id: attest | |
| with: | |
| subject-path: "./dist/singer_sdk*" | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| name: Attestations | |
| path: ${{ steps.attest.outputs.bundle-path }} | |
| publish: | |
| name: PyPI | |
| runs-on: ubuntu-latest | |
| needs: [build] | |
| environment: | |
| name: publishing | |
| url: https://pypi.org/project/singer-sdk/${{ needs.build.outputs.version }} | |
| if: startsWith(github.ref, 'refs/tags/') | |
| permissions: | |
| id-token: write # Needed for OIDC PyPI publishing | |
| steps: | |
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 | |
| with: | |
| name: Packages | |
| path: dist | |
| - name: Publish | |
| uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 |