Skip to content

Remove more timeseries metrics (#2128) #102

Remove more timeseries metrics (#2128)

Remove more timeseries metrics (#2128) #102

# NOTE: This name appears in GitHub's Checks API and in workflow's status badge.
name: deploy-dbt-docs
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# Google variables
GOOGLE_PROJECT_ID: "opensource-observer"
# Trigger the workflow when:
on:
# A push occurs to one of the matched branches.
push:
branches:
- main
paths:
- warehouse/dbt/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-deploy:
# NOTE: This name appears in GitHub's Checks API.
name: build-deploy
environment: indexer
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version: "20.x"
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: 3.12
poetry-version: 1.8.2
- name: Login to google
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS_JSON }}"
create_credentials_file: true
- name: Setup dbt profile
run: |
bash .github/scripts/create-dbt-profile.sh ${GOOGLE_APPLICATION_CREDENTIALS}
- name: Build
run: pnpm build:dbt:docs
# This is necessary because wrangler tries to install at monorepo root
- run: echo "ignore-workspace-root-check=true" >> .npmrc
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy target --project-name=models-opensource-observer