This repository was archived by the owner on Jun 8, 2026. It is now read-only.
chore(*): updating readme for archivation #69
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 English Documentation | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: | |
| - vnext | |
| - master | |
| paths-ignore: | |
| - '**/jp/**' | |
| - '**/kr/**' | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to checkout' | |
| type: string | |
| default: '' | |
| isVerbose: | |
| description: 'Get verbose output from steps - where configurable' | |
| type: boolean | |
| default: false | |
| shouldCleanPostExecution: | |
| description: 'Clean all pipeline dirs after the pipeline finishes?' | |
| type: boolean | |
| default: true | |
| env: | |
| BUILD_TYPE: ${{ github.ref_name == 'master' && 'production' || 'staging' }} | |
| TARGET_REF: ${{ github.event.inputs.branch && (startsWith(github.event.inputs.branch, 'refs/') && github.event.inputs.branch || format('refs/heads/{0}', github.event.inputs.branch)) || github.ref }} | |
| jobs: | |
| build: | |
| name: Build Job | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ env.TARGET_REF }} | |
| clean: true | |
| fetch-tags: true | |
| fetch-depth: 0 | |
| - name: Setup Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Setup .NET Core SDK 6.x | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '6.x' | |
| - name: Install dependencies | |
| run: npm ci --production=false ${{ github.event.inputs.isVerbose == 'true' && '--verbose' || '' }} | |
| - name: Build English documentation | |
| run: npm run build-${{ env.BUILD_TYPE }} -- --lang=en ${{ github.event.inputs.isVerbose == 'true' && '--verbose' || '' }} | |
| - name: Package English build | |
| run: | | |
| cd en/_site | |
| zip -r ../../${{ env.BUILD_TYPE }}_en.zip . | |
| cd ../.. | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: IgniteUIDocFX-en | |
| path: ${{ env.BUILD_TYPE }}_en.zip | |
| retention-days: 1 | |
| - name: Clean workspace | |
| if: ${{ github.event.inputs.shouldCleanPostExecution == 'true' || github.event_name == 'push' }} | |
| run: | | |
| git clean -ffdx | |
| git reset --hard | |
| - name: Trigger Deploy Workflow in IgniteUI Actions | |
| uses: actions/github-script@v8 | |
| with: | |
| github-token: ${{ secrets.CLASSIC_PAT_GITHUB }} | |
| script: | | |
| await github.rest.repos.createDispatchEvent({ | |
| owner: 'IgniteUI', | |
| repo: 'igniteui-actions', | |
| event_type: 'igniteui-docfx-cd', | |
| client_payload: { | |
| calling_branch: "${{ env.TARGET_REF }}", | |
| repository: "${{ github.repository }}", | |
| run_id: "${{ github.run_id }}", | |
| artifact_name: "IgniteUIDocFX-en", | |
| base_href: "angular-samples", | |
| platform: "angular", | |
| locale: "en", | |
| ref: "${{ github.ref }}", | |
| sha: "${{ github.sha }}", | |
| branch: '${{ github.ref_name }}', | |
| } | |
| }); |