1+ # This workflow builds the python package.
2+ # On release tags, it also publishes to PyPI and DockerHub.
3+ # If we rename the workflow file name, we have to also update the
4+ # Trusted Publisher settings on PyPI.
15name : Packaging and Publishing
26
37on :
6165 if : startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
6266 runs-on : ubuntu-latest
6367 needs : [publish]
68+ environment :
69+ name : DockerHub
70+ url : https://hub.docker.com/r/airbyte/source-declarative-manifest/tags
6471
6572 steps :
6673 - uses : actions/checkout@v4
@@ -70,14 +77,22 @@ jobs:
7077 - name : Set Version (workflow_dispatch)
7178 if : github.event_name == 'workflow_dispatch'
7279 run : |
73- echo "Version set to ${{ github.event.inputs.version }}"
74- echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
80+ VERSION=${{ github.event.inputs.version }}
81+ echo "Version input set to '${VERSION}'"
82+ # Remove the 'v' prefix if it exists
83+ VERSION=${VERSION#v}
84+ echo "Setting version to '$VERSION'"
85+ echo "VERSION=${VERSION}" >> $GITHUB_ENV
7586
7687 - name : Set Version (tag)
7788 if : startsWith(github.ref, 'refs/tags/v')
7889 run : |
79- echo "Version set to ${{ github.ref_name }}"
80- echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
90+ VERSION=${{ github.ref_name }}
91+ echo "Version ref set to '${VERSION}'"
92+ # Remove the 'v' prefix if it exists
93+ VERSION=${VERSION#v}
94+ echo "Setting version to '$VERSION'"
95+ echo "VERSION=${VERSION}" >> $GITHUB_ENV
8196
8297 # We need to download the build artifact again because the previous job was on a different runner
8398 - name : Download Build Artifact
0 commit comments