Bump @mdx-js/react from 3.1.0 to 3.1.1 #2483
This file contains hidden or 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: Build | |
| on: | |
| pull_request: | |
| push: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: "Branch name." | |
| required: true | |
| default: "main" | |
| env: | |
| IMAGE_NAME: ghcr.io/${{ github.repository }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd | |
| - name: Build image | |
| uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 | |
| with: | |
| target: caddy | |
| tags: | | |
| ${{ env.IMAGE_NAME }}:latest | |
| ${{ env.IMAGE_NAME }}:${{ github.sha }} | |
| outputs: type=docker,dest=${{ runner.temp }}/image.tar | |
| secrets: | | |
| "PIWIK_PRO_ACCOUNT_ADDRESS=${{ secrets.PIWIK_PRO_ACCOUNT_ADDRESS }}" | |
| "PIWIK_PRO_SITE_ID=${{ secrets.PIWIK_PRO_SITE_ID }}" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f | |
| with: | |
| name: image | |
| path: ${{ runner.temp }}/image.tar | |
| retention-days: 1 | |
| publish: | |
| if: | | |
| github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c | |
| with: | |
| name: image | |
| path: ${{ runner.temp }} | |
| - name: Load image | |
| run: | | |
| docker load --input ${{ runner.temp }}/image.tar | |
| - name: Login to container registry | |
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Push image | |
| run: | | |
| docker push --all-tags ${{ env.IMAGE_NAME }} | |
| index-typesense: | |
| if: | | |
| github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f | |
| with: | |
| node-version: 24.12 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build markdown output | |
| run: pnpm build:docusaurus | |
| env: | |
| PIWIK_PRO_ACCOUNT_ADDRESS: ${{ secrets.PIWIK_PRO_ACCOUNT_ADDRESS }} | |
| PIWIK_PRO_SITE_ID: ${{ secrets.PIWIK_PRO_SITE_ID }} | |
| - name: Index markdown in Typesense | |
| run: pnpm index:typesense | |
| env: | |
| SITE_URL: https://developer.overheid.nl | |
| TYPESENSE_ENDPOINT: ${{ vars.TYPESENSE_ENDPOINT || secrets.TYPESENSE_ENDPOINT }} | |
| TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_ADMIN_API_KEY || secrets.TYPESENSE_API_KEY }} |