From 6879c1c85c0ff0f54ff2256666adc91966100b40 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Fri, 22 Nov 2024 15:06:22 -0800 Subject: [PATCH 1/3] add gh commands --- mkdocs/docs/how-to-release.md | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/mkdocs/docs/how-to-release.md b/mkdocs/docs/how-to-release.md index bea5548748..9d97e38ec2 100644 --- a/mkdocs/docs/how-to-release.md +++ b/mkdocs/docs/how-to-release.md @@ -130,6 +130,15 @@ Run the [`Python release` Github Action](https://github.com/apache/iceberg-pytho * Tag: Use the newly created tag. * Version: Set the `version` to `main`, as the source cannot be modified. +Or if `gh` is available, trigger the action using: + +```bash +gh workflow run python-release.yml --repo apache/iceberg-python --ref ${GIT_TAG} --field version=main +SVN_RUN_ID=$(gh run list --repo apache/iceberg-python --json databaseId -q '.[0].databaseId') +echo "Waiting for workflow to complete, this will take several minutes..." +gh run watch $SVN_RUN_ID --repo apache/iceberg-python +``` + ![Github Actions Run Workflow for SVN Upload](assets/images/ghactions-run-workflow-svn-upload.png) This action will generate: @@ -140,6 +149,12 @@ This action will generate: ##### Download Artifacts, Sign, and Generate Checksums Download the ZIP file containing the artifacts from the GitHub Actions run and unzip it. +Or if `gh` is available, download the artifacts using: + +```bash +# download artifact to current directory +gh run download $SVN_RUN_ID --repo apache/iceberg-python +``` Navigate to the release directory. Sign the files and generate checksums: @@ -190,11 +205,26 @@ Run the [`Python release` Github Action](https://github.com/apache/iceberg-pytho * Tag: Use the newly created tag. * Version: Set the `version` to release candidate, e.g. `0.7.0rc1`. +Or if `gh` is available, trigger the action using: + +```bash +gh workflow run python-release.yml --repo apache/iceberg-python --ref ${GIT_TAG} --field version=main +PYPI_RUN_ID=$(gh run list --repo apache/iceberg-python --json databaseId -q '.[0].databaseId') +echo "Waiting for workflow to complete, this will take several minutes..." +gh run watch $PYPI_RUN_ID --repo apache/iceberg-python +``` + ![Github Actions Run Workflow for PyPi Upload](assets/images/ghactions-run-workflow-pypi-upload.png) ##### Download Artifacts Download the zip file from the Github Action run and unzip locally. +Or if `gh` is available, download the artifacts using: + +```bash +# download artifact to current directory +gh run download $PYPI_RUN_ID --repo apache/iceberg-python +``` ##### Upload Artifacts to PyPi @@ -363,6 +393,15 @@ Thanks to everyone for contributing! Run the [`Release Docs` Github Action](https://github.com/apache/iceberg-python/actions/workflows/python-release-docs.yml). +Or if `gh` is available, trigger the action using: + +```bash +gh workflow run python-release-docs.yml --repo apache/iceberg-python --ref ${GIT_TAG} +DOCS_RUN_ID=$(gh run list --repo apache/iceberg-python --json databaseId -q '.[0].databaseId') +echo "Waiting for workflow to complete..." +gh run watch $DOCS_RUN_ID --repo apache/iceberg-python +``` + ### Update the Github template Make sure to create a PR to update the [GitHub issues template](https://github.com/apache/iceberg-python/blob/main/.github/ISSUE_TEMPLATE/iceberg_bug_report.yml) with the latest version. From c3e28f1eb5bb442c49210411c8ecf94e2e6ce46e Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Wed, 27 Nov 2024 16:58:34 -0800 Subject: [PATCH 2/3] fix input version --- mkdocs/docs/how-to-release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs/docs/how-to-release.md b/mkdocs/docs/how-to-release.md index 9d97e38ec2..0ca7d06a1e 100644 --- a/mkdocs/docs/how-to-release.md +++ b/mkdocs/docs/how-to-release.md @@ -208,7 +208,7 @@ Run the [`Python release` Github Action](https://github.com/apache/iceberg-pytho Or if `gh` is available, trigger the action using: ```bash -gh workflow run python-release.yml --repo apache/iceberg-python --ref ${GIT_TAG} --field version=main +gh workflow run python-release.yml --repo apache/iceberg-python --ref ${GIT_TAG} --field version=${VERSION} PYPI_RUN_ID=$(gh run list --repo apache/iceberg-python --json databaseId -q '.[0].databaseId') echo "Waiting for workflow to complete, this will take several minutes..." gh run watch $PYPI_RUN_ID --repo apache/iceberg-python From 9598ced00a0dd8f62f8678e92627dbd9ffbe8047 Mon Sep 17 00:00:00 2001 From: Kevin Liu Date: Wed, 27 Nov 2024 17:00:38 -0800 Subject: [PATCH 3/3] spacing --- mkdocs/docs/how-to-release.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkdocs/docs/how-to-release.md b/mkdocs/docs/how-to-release.md index 0ca7d06a1e..1bc7da9ba0 100644 --- a/mkdocs/docs/how-to-release.md +++ b/mkdocs/docs/how-to-release.md @@ -149,6 +149,7 @@ This action will generate: ##### Download Artifacts, Sign, and Generate Checksums Download the ZIP file containing the artifacts from the GitHub Actions run and unzip it. + Or if `gh` is available, download the artifacts using: ```bash @@ -219,6 +220,7 @@ gh run watch $PYPI_RUN_ID --repo apache/iceberg-python ##### Download Artifacts Download the zip file from the Github Action run and unzip locally. + Or if `gh` is available, download the artifacts using: ```bash