Skip to content

test

test #12

name: Release BQ Driver
on:
push:
tags:
- "v*.*.*" # Matches v1.2.3 style tags
permissions:
contents: write
jobs:
release:
name: Release BQ Driver (Linux)
runs-on: ubuntu-22.04
env:
BUILD_NAME: release-bq-driver
DEPENDENCIES: BAZEL,iODBC,DRIVER_MANAGER_SETUP_GOOGLE_DRIVER
DISTRO: ubuntu-22.04-install
TRIGGER_TYPE: release
LOGS_BUCKET: my-release-artifacts-bucket
TAG_NAME: ${{ github.ref_name }}
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: google-github-actions/auth@v2
with:
create_credentials_file: true
credentials_json: ${{ secrets.BUILD_CACHE_KEY }}
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential pkg-config libiodbc2-dev
- name: Build & package driver
run: |
chmod +x ci/cloudbuild/builds/release-bq-driver.sh
ci/cloudbuild/builds/release-bq-driver.sh
- name: Upload tarball to GCS
uses: google-github-actions/upload-cloud-storage@v2
with:
path: cpp-bigquery-odbc-${{ env.TAG_NAME }}-linux-x86_64.tar.gz
destination: ${{ env.LOGS_BUCKET }}/artifacts/${{ env.TAG_NAME }}/