test #12
Workflow file for this run
This file contains hidden or 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
| 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 }}/ |