MWI Docs: Provide shortened sidebar labels for key content #6680
Workflow file for this run
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: Docs Preview | |
| on: | |
| pull_request: | |
| paths: | |
| - 'docs/**' | |
| - .github/workflows/docs-amplify.yaml | |
| workflow_dispatch: | |
| permissions: | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| amplify-preview: | |
| name: Prepare Amplify preview URL | |
| runs-on: ubuntu-22.04-2core-arm64 | |
| environment: docs-amplify | |
| steps: | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@a03048d87541d1d9fcf2ecf528a4a65ba9bd7838 # v4 | |
| with: | |
| aws-region: us-west-2 | |
| role-to-assume: ${{ vars.IAM_ROLE }} | |
| - name: Create Amplify preview environment | |
| uses: gravitational/shared-workflows/tools/amplify-preview@664e788d45a7f56935cf63094b4fb52a41b12015 # tools/amplify-preview/v0.0.2 | |
| id: amplify_preview | |
| with: | |
| app_ids: ${{ vars.AMPLIFY_APP_IDS }} | |
| create_branches: "true" | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| wait: "true" | |
| - name: Print failure message | |
| if: failure() | |
| env: | |
| ERR_TITLE: Teleport Docs preview build failed | |
| ERR_MESSAGE: >- | |
| Please refer to the following documentation for help: https://www.notion.so/goteleport/How-to-Amplify-deployments-162fdd3830be8096ba72efa1a49ee7bc?pvs=4 | |
| Execution info: ${{ steps.amplify_preview.outputs.amplify_app_id }} ${{ steps.amplify_preview.outputs.amplify_branch_name }} ${{ steps.amplify_preview.outputs.amplify_job_id }} | |
| run: | | |
| echo ::error title=$ERR_TITLE::$ERR_MESSAGE | |
| exit 1 |