This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 0b90ced chore(ci): create release in packaging.yaml on tag (#120)
0b90ced is described below
commit 0b90ced23e83d49bdab5cd72cf15c04b23457cb0
Author: Dewey Dunnington <[email protected]>
AuthorDate: Fri Feb 24 12:41:36 2023 -0400
chore(ci): create release in packaging.yaml on tag (#120)
---
.github/workflows/packaging.yaml | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/.github/workflows/packaging.yaml b/.github/workflows/packaging.yaml
index dc2449c..b461416 100644
--- a/.github/workflows/packaging.yaml
+++ b/.github/workflows/packaging.yaml
@@ -235,3 +235,41 @@ jobs:
retention-days: 7
path: |
nanoarrow-r-pkg/*.tar.gz
+
+ release:
+ name: "Create release"
+ runs-on: ubuntu-latest
+ if: startsWith(github.ref, 'refs/tags/')
+ needs:
+ - docs
+ - source
+ - r
+
+ steps:
+ - name: Get All Artifacts
+ uses: actions/download-artifact@v3
+ with:
+ path: release-artifacts
+ - name: Release
+ shell: bash
+ run: |
+ RELEASE_TAG=${GITHUB_REF#refs/*/}
+ # Deduplicate artifacts built in different jobs with same tag
+ mkdir -p upload-staging
+ find ./release-artifacts/ \
+ '(' \
+ -name docs.tgz -or \
+ -name 'nanoarrow_*.tar.gz' -or \
+ -name 'apache-arrow-nanoarrow-*.tar.gz' \
+ ')' \
+ -exec mv '{}' upload-staging \;
+ UPLOAD=$(find upload-staging -type f | sort | uniq)
+ echo "Uploading files:"
+ echo ${UPLOAD}
+ gh release create "${RELEASE_TAG}" \
+ --repo ${{ github.repository }} \
+ --prerelease \
+ --title "nanoarrow ${RELEASE_TAG}" \
+ ${UPLOAD}
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}