You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/pypi_publish.yml
+2-2
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ on:
14
14
workflow_dispatch:
15
15
inputs:
16
16
version:
17
-
description: "Version. The version to publish, ie 1.0.0 or 1.0.0-dev1. In most cases, you can leave this blank. If run from a release tag (recommended), the version number will be inferred from the git tag."
17
+
description: "Note that this workflow is intended for prereleases. For public-facing stable releases, please use the GitHub Releases workflow instead: https://github.com/airbytehq/airbyte-python-cdk/blob/main/docs/RELEASES.md. If running this workflow from main or from a dev branch, please enter the desired version number here, for instance 1.2.3dev0 or 1.2.3rc1."
18
18
required: false
19
19
publish_to_pypi:
20
20
description: "Publish to PyPI. If true, the workflow will publish to PyPI."
@@ -30,7 +30,7 @@ on:
30
30
description: "Update Connector Builder. If true, the workflow will create a PR to bump the CDK version used by Connector Builder."
A few seconds after any PR is merged to `main` , a release draft will be created or updated on the releases page here: https://github.com/airbytehq/airbyte-python-cdk/releases. Here are the steps to publish a CDK release:
6
6
@@ -13,34 +13,16 @@ A few seconds after any PR is merged to `main` , a release draft will be created
13
13
14
14
-*Only maintainers can see release drafts. Non-maintainers will only see published releases.*
15
15
- If you create a tag on accident that you need to remove, contact a maintainer to delete the tag and the release.
16
-
- You can monitor the PyPi release process here in the GitHub Actions view: https://github.com/airbytehq/airbyte-python-cdk/actions/workflows/pypi_publish.yml
16
+
- You can monitor the PyPI release process here in the GitHub Actions view: https://github.com/airbytehq/airbyte-python-cdk/actions/workflows/pypi_publish.yml
## Publishing Pre-Release Versions of the CDK and/or SDM (Internal)
21
21
22
-
Publishing a pre-release version is similar to publishing a stable version. However, instead of using the auto-generated release draft, you’ll create a new release draft.
22
+
This process is slightly different from the above, since we don't necessarily want public release notes to be published for internal testing releases. The same underlying workflow will be run, but we'll kick it off directly:
23
23
24
-
1. Navigate to the releases page: https://github.com/airbytehq/airbyte-python-cdk/releases
25
-
2. Click “Draft a new release”.
26
-
3. In the tag selector, type the version number of the prerelease you’d like to create and copy-past the same into the Release name box.
27
-
- The release should be like `vX.Y.Zsuffix` where `suffix` is something like `dev0`, `dev1` , `alpha0`, `beta1`, etc.
28
-
29
-
## Publishing new versions of SDM (source-declarative-manifest)
30
-
31
-
Prereqs:
32
-
33
-
1. The SDM publish process assumes you have already published the CDK. If you have not already done so, you’ll want to first publish the CDK using the steps above. While this prereq is not technically *required*, it is highly recommended.
34
-
35
-
Publish steps:
36
-
37
-
1. Navigate to the GitHub action page here: https://github.com/airbytehq/airbyte-python-cdk/actions/workflows/publish_sdm_connector.yml
38
-
2. Click “Run workflow” to start the process of invoking a new manual workflow.
39
-
3. Click the drop-down for “Run workflow from” and then select the “tags” tab to browse already-created tags. Select the tag of the published CDK version you want to use for the SDM publish process. Notes:
40
-
1. Optionally you can type part of the version number to filter down the list.
41
-
2. You can ignore the version prompt box (aka leave blank) when publishing from a release tag. The version will be detected from the git tag.
42
-
3. You can optionally click the box for “Dry run” if you want to observe the process before running the real thing. The dry run option will perform all steps *except* for the DockerHub publish step.
43
-
4. Without changing any other options, you can click “Run workflow” to run the workflow.
44
-
5. Watch the GitHub Action run. If successful, you should see it publish to DockerHub and a URL will appear on the “Summary” view once it has completed.
0 commit comments