Skip to content

Update data

Update data #212

Workflow file for this run

name: API
on:
pull_request:
paths:
- "public/**"
branches:
- main
types:
- closed
workflow_dispatch:
concurrency:
group: docs-${{ github.head_ref }}
cancel-in-progress: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ vars.AWS_REGION }}
AWS_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }}
AWS_ENDPOINT_URL: ${{ vars.AWS_ENDPOINT_URL }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_HOST: ${{ vars.CLOUDFLARE_HOST }}
DRY_RUN: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
jobs:
docs:
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event.pull_request.merged == true) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v2
with:
experimental: true
- run: mise run api:publish