feat(glossary): import glossary from CSV #9809
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: Frontend Preview | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| pull_request: | |
| branches: | |
| - "**" | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| release: | |
| types: [published] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| frontend_change: ${{ steps.ci-optimize.outputs.frontend-change == 'true' }} | |
| cloudflare_token_available: ${{ steps.cloudflare-token-check.outputs.cloudflare_token_available }} | |
| steps: | |
| - name: Check out the repo | |
| uses: acryldata/sane-checkout-action@v4 | |
| - uses: ./.github/actions/ci-optimization | |
| id: ci-optimize | |
| - name: Check if cloudflare api token is available | |
| id: cloudflare-token-check | |
| env: | |
| API_TOKEN_AVAILABLE: ${{ secrets.CLOUDFLARE_API_TOKEN != '' }} | |
| run: | | |
| echo "API_TOKEN_AVAILABLE is : ${{ env.API_TOKEN_AVAILABLE }}" | |
| echo "cloudflare_token_available=${{ env.API_TOKEN_AVAILABLE }}" >> "$GITHUB_OUTPUT" | |
| deploy: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| deployments: write | |
| timeout-minutes: 30 | |
| needs: setup | |
| if: ${{ github.event.pull_request.head.repo.fork != 'true' }} | |
| steps: | |
| - name: Check out the repo | |
| uses: acryldata/sane-checkout-action@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "zulu" | |
| java-version: 17 | |
| - uses: gradle/actions/setup-gradle@v4 | |
| - name: Gradle build for frontend | |
| if: ${{ needs.setup.outputs.frontend_change == 'true' }} | |
| run: | | |
| ./gradlew :datahub-web-react:build -x test -x check --parallel | |
| - name: Publish | |
| if: ${{ needs.setup.outputs.frontend_change == 'true' && needs.setup.outputs.cloudflare_token_available == 'true' }} | |
| uses: cloudflare/pages-action@1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: datahub-project-web-react | |
| workingDirectory: datahub-web-react | |
| directory: dist | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |