Skip to content

Commit db07ce0

Browse files
committed
Build dbt instead or uploading
1 parent 3379637 commit db07ce0

File tree

1 file changed

+0
-86
lines changed

1 file changed

+0
-86
lines changed

.github/workflows/deploy-dbt.yml

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -217,92 +217,6 @@ jobs:
217217
working-directory: warehouse
218218
run: poetry run dbt-metabase models -v --manifest-path=target/manifest.json --exclude-schemas="*staging, payments" --skip-sources --docs-url="https://dbt-docs.calitp.org" --metabase-url="https://dashboards.calitp.org" --metabase-database="${{ env.METABASE_DESTINATION_DATABASE }}" --metabase-api-key="${{ secrets.METABASE_API_KEY}}"
219219

220-
upload:
221-
name: Upload to Google Cloud Storage
222-
needs: [compile]
223-
runs-on: ubuntu-latest
224-
225-
permissions:
226-
contents: read
227-
id-token: write
228-
229-
steps:
230-
- name: Download compilation artifacts
231-
uses: actions/download-artifact@v4
232-
with:
233-
name: dbt
234-
path: warehouse/target
235-
236-
- name: Authenticate Google Service Account
237-
uses: google-github-actions/auth@v2
238-
with:
239-
create_credentials_file: 'true'
240-
project_id: ${{ env.PROJECT_ID }}
241-
workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }}
242-
service_account: ${{ env.SERVICE_ACCOUNT }}
243-
244-
- name: Setup GCloud utilities
245-
uses: google-github-actions/setup-gcloud@v2
246-
247-
- name: Get current timestamp
248-
uses: josStorer/get-current-time@v2
249-
id: current-time
250-
with:
251-
format: "YYYY-MM-DDTHH:mm:ss.SSSSSS+00:00"
252-
timezone: "UTC"
253-
254-
- name: Get current date
255-
uses: josStorer/get-current-time@v2
256-
id: current-date
257-
with:
258-
format: "YYYY-MM-DD"
259-
timezone: "UTC"
260-
261-
- name: Upload catalog.json
262-
uses: google-github-actions/upload-cloud-storage@v1
263-
with:
264-
path: './warehouse/target/'
265-
glob: 'catalog.json'
266-
parent: false
267-
process_gcloudignore: false
268-
destination: "${{ env.DBT_ARTIFACTS_BUCKET }}/catalog.json/dt=${{ steps.current-date.outputs.formattedTime }}/ts=${{ steps.current-time.outputs.formattedTime }}/"
269-
270-
- name: Upload manifest.json
271-
uses: google-github-actions/upload-cloud-storage@v1
272-
with:
273-
path: './warehouse/target/'
274-
glob: 'manifest.json'
275-
parent: false
276-
process_gcloudignore: false
277-
destination: "${{ env.DBT_ARTIFACTS_BUCKET }}/manifest.json/dt=${{ steps.current-date.outputs.formattedTime }}/ts=${{ steps.current-time.outputs.formattedTime }}/"
278-
279-
- name: Upload run_results.json
280-
uses: google-github-actions/upload-cloud-storage@v1
281-
with:
282-
path: './warehouse/target/'
283-
glob: 'run_results.json'
284-
parent: false
285-
process_gcloudignore: false
286-
destination: "${{ env.DBT_ARTIFACTS_BUCKET }}/run_results.json/dt=${{ steps.current-date.outputs.formattedTime }}/ts=${{ steps.current-time.outputs.formattedTime }}/"
287-
288-
- name: Upload index.html
289-
uses: google-github-actions/upload-cloud-storage@v1
290-
with:
291-
path: './warehouse/target/'
292-
glob: 'index.html'
293-
parent: false
294-
process_gcloudignore: false
295-
destination: "${{ env.DBT_ARTIFACTS_BUCKET }}/index.html/dt=${{ steps.current-date.outputs.formattedTime }}/ts=${{ steps.current-time.outputs.formattedTime }}/"
296-
297-
- name: Upload documentation
298-
uses: google-github-actions/upload-cloud-storage@v1
299-
with:
300-
path: './warehouse/target/'
301-
glob: '{catalog.json,manifest.json,index.html}'
302-
parent: false
303-
process_gcloudignore: false
304-
destination: ${{ env.DBT_DOCS_BUCKET }}
305-
306220
visualize:
307221
name: Pull Request visualization
308222
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)