Skip to content

Update cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutt… #11

Update cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutt…

Update cookiecutter/tap-template/{{cookiecutter.tap_id}}/{{cookiecutt… #11

Workflow file for this run

name: Release
on:
push:
permissions: {}
jobs:
build:
name: Build Wheel and SDist
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@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.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@e8998f949152b193b063cb0ec769d69d929409be # v2.4.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