MINOR: [Release] Update versions for 19.0.0 (#371) #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
name: Deploy development Cookbooks | |
jobs: | |
make_dev_cookbooks: | |
name: build | |
runs-on: ubuntu-latest | |
env: | |
ARROW_NIGHTLY: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Setup pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt install libcurl4-openssl-dev \ | |
libssl-dev \ | |
maven \ | |
openjdk-11-jdk \ | |
python3-pip | |
- name: Run tests | |
run: make test | |
- name: Build and render books | |
run: make all | |
- name: Upload book artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build_book | |
path: build/ | |
make_dev_cpp: | |
name: build c++ | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache conda | |
uses: actions/cache@v4 | |
env: | |
# Increase this value to reset cache if cpp/dev.yml has not changed | |
CACHE_NUMBER: 0 | |
with: | |
path: ~/conda_pkgs_dir | |
key: | |
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('cpp/dev.yml') }} | |
- name: Setup environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: 3.9 | |
activate-environment: cookbook-cpp-dev | |
environment-file: cpp/dev.yml | |
auto-activate-base: false | |
- name: Test | |
run: | |
echo ${CONDA_PREFIX} | |
- name: Build cookbook | |
run: | |
make cpp | |
- name: Upload cpp book | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cpp_book | |
path: build/cpp | |
deploy_dev_cookbooks: | |
name: deploy | |
runs-on: ubuntu-latest | |
needs: [make_dev_cookbooks, make_dev_cpp] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: Prepare branch | |
run: | | |
git checkout --orphan gh-pages-tmp | |
git rm -rf --ignore-unmatch ./dev | |
mkdir dev | |
- name: Download book artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: build_book | |
path: ./dev | |
- name: Download cpp book | |
uses: actions/download-artifact@v4 | |
with: | |
name: cpp_book | |
path: ./dev/cpp | |
- name: Push changes to gh-pages/asf-site branch | |
run: | | |
mv -f dev/index_dev.html dev/index.html | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email '[email protected]' | |
git add --all | |
git commit -m 'publish built book' | |
git push -f origin gh-pages-tmp:gh-pages | |
git push -f origin gh-pages-tmp:asf-site |