|
24 | 24 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
25 | 25 | with: |
26 | 26 | fetch-depth: 0 |
| 27 | + # For testing, use the SDK development branch |
| 28 | + ref: DVR-330-example-apps-content-autogeneration |
27 | 29 |
|
28 | 30 | - name: Check alpha version |
29 | 31 | id: alpha_check |
@@ -62,14 +64,17 @@ jobs: |
62 | 64 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
63 | 65 | with: |
64 | 66 | fetch-depth: 0 |
| 67 | + # For testing, use the SDK development branch |
| 68 | + ref: DVR-330-example-apps-content-autogeneration |
65 | 69 |
|
66 | 70 | - name: Checkout Docs Repo |
67 | 71 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
68 | 72 | with: |
69 | 73 | repository: immutable/docs |
70 | 74 | token: ${{ secrets.TS_IMMUTABLE_SDK_GITHUB_TOKEN }} |
71 | 75 | path: imx-docs |
72 | | - ref: main |
| 76 | + # For testing, use the docs development branch |
| 77 | + ref: DVR-331-example-app-layout |
73 | 78 |
|
74 | 79 | - name: Setup environment variables |
75 | 80 | run: | |
@@ -104,32 +109,44 @@ jobs: |
104 | 109 | - name: Update version link |
105 | 110 | run: ./.github/scripts/update-docs-link.sh |
106 | 111 |
|
107 | | - - name: Push SDK Docs to docs |
108 | | - id: docs_push |
109 | | - run: ./.github/scripts/push-docs.sh |
| 112 | + - name: Process Example App Tutorials |
| 113 | + run: | |
| 114 | + # Generate example app JSON files |
| 115 | + pnpm parse:examples |
| 116 | + |
| 117 | + # Process tutorials and copy to docs repo |
| 118 | + ./.github/scripts/process-tutorials.sh |
110 | 119 | shell: bash |
111 | 120 |
|
112 | | - - name: Trigger Netlify Build and Deploy |
113 | | - id: netlify_build |
114 | | - run: curl -X POST -d '{}' ${{ env.NETLIFY_BUILD_HOOK }} |
115 | | - |
116 | | - - name: Wait for 10 minutes |
117 | | - # allow Netlify time to build and deploy |
118 | | - run: sleep 600 |
119 | | - |
120 | | - - name: Check Netlify Site Deployed |
121 | | - id: netlify_deploy |
122 | | - run: ./.github/scripts/check-docs-deployed.sh |
| 121 | + - name: Push SDK Docs to docs |
| 122 | + id: docs_push |
| 123 | + run: | |
| 124 | + # Modify push-docs.sh to push to the testing branch |
| 125 | + cd "$CLONE_DIR" |
| 126 | + git push -u origin DVR-331-example-app-layout |
123 | 127 | shell: bash |
124 | 128 |
|
125 | | - - name: Notify SDK Slack Docs Publish Success |
126 | | - if: ${{ success() && steps.docs_push.conclusion == 'success' && steps.netlify_build.conclusion == 'success' && steps.netlify_deploy.conclusion == 'success' }} |
127 | | - uses: ./.github/actions/notify-slack-publish-status |
128 | | - with: |
129 | | - message: "✅ SDK reference documents published successfully - https://docs.immutable.com/sdk-references/ts-immutable-sdk/${{ env.VERSION }}/\n\n>*`${{ env.GITHUB_USER }}` Please ensure you and the team updated all Sample Code + Guides on the <https://docs.immutable.com|imx-docs site> to reflect the change.*" |
130 | | - |
131 | | - - name: Notify SDK Slack Docs Publish Failure |
132 | | - if: ${{ failure() && steps.docs_version_check.conclusion == 'success' }} |
133 | | - uses: ./.github/actions/notify-slack-publish-status |
134 | | - with: |
135 | | - message: "❌ Failed to publish SDK reference documents. Please check the logs for more details." |
| 129 | + # - name: Trigger Netlify Build and Deploy |
| 130 | + # id: netlify_build |
| 131 | + # run: curl -X POST -d '{}' ${{ env.NETLIFY_BUILD_HOOK }} |
| 132 | + |
| 133 | + # - name: Wait for 10 minutes |
| 134 | + # # allow Netlify time to build and deploy |
| 135 | + # run: sleep 600 |
| 136 | + |
| 137 | + # - name: Check Netlify Site Deployed |
| 138 | + # id: netlify_deploy |
| 139 | + # run: ./.github/scripts/check-docs-deployed.sh |
| 140 | + # shell: bash |
| 141 | + |
| 142 | + # - name: Notify SDK Slack Docs Publish Success |
| 143 | + # if: ${{ success() && steps.docs_push.conclusion == 'success' && steps.netlify_build.conclusion == 'success' && steps.netlify_deploy.conclusion == 'success' }} |
| 144 | + # uses: ./.github/actions/notify-slack-publish-status |
| 145 | + # with: |
| 146 | + # message: "✅ SDK reference documents published successfully - https://docs.immutable.com/sdk-references/ts-immutable-sdk/${{ env.VERSION }}/\n\n>*`${{ env.GITHUB_USER }}` Please ensure you and the team updated all Sample Code + Guides on the <https://docs.immutable.com|imx-docs site> to reflect the change.*" |
| 147 | + |
| 148 | + # - name: Notify SDK Slack Docs Publish Failure |
| 149 | + # if: ${{ failure() && steps.docs_version_check.conclusion == 'success' }} |
| 150 | + # uses: ./.github/actions/notify-slack-publish-status |
| 151 | + # with: |
| 152 | + # message: "❌ Failed to publish SDK reference documents. Please check the logs for more details." |
0 commit comments