|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# Creates a github release on https://github.com/apache/arrow-rs/releases |
| 19 | +# when a tag is pushed to the repository |
| 20 | +name: Release |
| 21 | +on: |
| 22 | + push: |
| 23 | + tags: |
| 24 | + - '*' |
| 25 | + - '!*-rc*' |
| 26 | +permissions: |
| 27 | + contents: write |
| 28 | +env: |
| 29 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 30 | +jobs: |
| 31 | + publish: |
| 32 | + name: Publish |
| 33 | + runs-on: ubuntu-latest |
| 34 | + timeout-minutes: 5 |
| 35 | + steps: |
| 36 | + - uses: actions/checkout@v4 |
| 37 | + - name: Create GitHub Releases |
| 38 | + run: | |
| 39 | + case "${GITHUB_REF_NAME}" in |
| 40 | + object_store_*) |
| 41 | + version=${GITHUB_REF_NAME#object_store_} |
| 42 | + title="object_store ${version}" |
| 43 | + notes_file=object_store/CHANGELOG.md |
| 44 | + ;; |
| 45 | + *) |
| 46 | + version=${GITHUB_REF_NAME} |
| 47 | + title="arrow ${version}" |
| 48 | + notes_file=CHANGELOG.md |
| 49 | + ;; |
| 50 | + esac |
| 51 | + gh release create ${GITHUB_REF_NAME} \ |
| 52 | + --title "${title}" \ |
| 53 | + --notes-file ${notes_file} \ |
| 54 | + --verify-tag |
0 commit comments