Make bytes->Socrata distribution a little more friendly (#1337) #28
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
name: Publish Model JSON Schemas | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- dcpy/models/** | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Publish JSON Schemas | |
runs-on: ubuntu-22.04 | |
container: | |
image: nycplanning/dev:latest | |
env: | |
RECIPES_BUCKET: edm-recipes | |
PUBLISHING_BUCKET: edm-publishing | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: NYCPlanning/data-engineering | |
- name: Load Secrets | |
uses: 1password/load-secrets-action@v1 | |
with: | |
export-env: true | |
env: | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
AWS_S3_ENDPOINT: "op://Data Engineering/DO_keys/AWS_S3_ENDPOINT" | |
AWS_SECRET_ACCESS_KEY: "op://Data Engineering/DO_keys/AWS_SECRET_ACCESS_KEY" | |
AWS_ACCESS_KEY_ID: "op://Data Engineering/DO_keys/AWS_ACCESS_KEY_ID" | |
- name: Publish | |
run: python -m admin.ops.publish_json_schemas |