Skip to content

v1.11.3

v1.11.3 #94

Workflow file for this run

# Deploys all the resources to production environment
name: Production Release
on:
release:
types: [ released ]
jobs:
bd-deployment:
name: Database Deployment
uses: ./.github/workflows/db-prod.yml
secrets: inherit
bd-update:
name: Database Update
needs: bd-deployment
uses: ./.github/workflows/db-update-prod.yml
secrets: inherit
batch-deployment:
name: Batch Processes Deployment
needs: bd-update
uses: ./.github/workflows/datasets-batch-deployer-prod.yml
secrets: inherit
api-deployment:
name: API Deployment
needs: batch-deployment
uses: ./.github/workflows/api-prod.yml
secrets: inherit
integration-tests:
uses: ./.github/workflows/integration-tests.yml
needs: api-deployment
with:
API_URL: "https://api.mobilitydatabase.org"
ENVIRONMENT: 'prod'
secrets:
REFRESH_TOKEN: ${{ secrets.PROD_API_TEST_REFRESH_TOKEN }}
web-deployment:
name: Web Deployment
needs: batch-deployment
uses: ./.github/workflows/web-prod.yml
secrets: inherit
publish-openapi-schemas:
name: Publish OpenAPI Schemas
needs: api-deployment
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Bundle OpenAPI schemas
run: |
npx --yes @redocly/cli bundle docs/DatabaseCatalogAPI.yaml -o /tmp/DatabaseCatalogAPI.yaml
npx --yes @redocly/cli bundle docs/DatabaseCatalogTokenAPI.yaml -o /tmp/DatabaseCatalogTokenAPI.yaml
- name: Upload OpenAPI schemas as release assets
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ github.event.release.tag_name }} \
/tmp/DatabaseCatalogAPI.yaml \
/tmp/DatabaseCatalogTokenAPI.yaml \
--clobber
notify-slack-on-failure:
needs: [web-deployment, integration-tests]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Notify Slack
uses: ./.github/actions/notify-slack
with:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
PRIORITY: "high"