You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2022/12/02 15:30:25 UTC

[arrow-adbc] branch main updated: ci: create GitHub release for RC tags (#208)

This is an automated email from the ASF dual-hosted git repository.

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new a01ed3c  ci: create GitHub release for RC tags (#208)
a01ed3c is described below

commit a01ed3c9bc3b1ebe5179ac140948aac3ab873f26
Author: David Li <li...@gmail.com>
AuthorDate: Fri Dec 2 10:30:19 2022 -0500

    ci: create GitHub release for RC tags (#208)
---
 .github/workflows/packaging-wheels.yml | 45 +++++++++++++++++++++++++++++++++-
 1 file changed, 44 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/packaging-wheels.yml b/.github/workflows/packaging-wheels.yml
index b149c2e..137c6c5 100644
--- a/.github/workflows/packaging-wheels.yml
+++ b/.github/workflows/packaging-wheels.yml
@@ -18,6 +18,12 @@
 name: Packaging - Nightly Artifacts
 
 on:
+  push:
+    # Automatically build on RC tags
+    branches-ignore:
+      - '**'
+    tags:
+      - 'adbc-*-rc*'
   schedule:
     - cron: "0 0 * * *"
   workflow_dispatch:
@@ -50,13 +56,18 @@ jobs:
         run: |
           docker-compose run docs
 
+      - name: Compress docs
+        shell: bash
+        run: |
+          tar --transform "s|docs/build/html|adbc-docs|" -czf docs.tgz docs/build/html
+
       - name: Archive docs
         uses: actions/upload-artifact@v3
         with:
           name: docs
           retention-days: 2
           path: |
-            docs/build/html
+            docs.tgz
 
   java:
     name: "Java 1.8"
@@ -365,3 +376,35 @@ jobs:
           ./ci/scripts/python_wheel_upload.sh python/adbc_driver_{manager,postgres,sqlite}/dist/*.tar.gz
         env:
           GEMFURY_PUSH_TOKEN: ${{ secrets.GEMFURY_PUSH_TOKEN }}
+
+  release:
+    name: "Create release"
+    runs-on: ubuntu-latest
+    if: startsWith(github.ref, 'refs/tags/')
+    needs:
+      - docs
+      - java
+      - python-manylinux
+      - python-macos
+      - python-windows
+      - python-sdist
+    steps:
+      - name: Get All Artifacts
+        uses: actions/download-artifact@v3
+        with:
+          path: release-artifacts
+      - name: Release
+        shell: bash
+        run: |
+          RELEASE_TAG=${GITHUB_REF#refs/*/}
+          gh release create "${RELEASE_TAG}" \
+            --repo ${{ github.repository }} \
+            --prerelease \
+            --title "ADBC Libraries ${RELEASE_TAG}" \
+            release-artifacts/docs/docs.tgz \
+            release-artifacts/java/*.jar \
+            release-artifacts/java/*.pom \
+            release-artifacts/python*/adbc_*/*/*.whl \
+            release-artifacts/python-manylinux/adbc_*/dist/adbc_*.tar.gz
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}