|
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 |
29 | 27 |
|
30 | 28 | - name: Check alpha version |
31 | 29 | id: alpha_check |
@@ -64,17 +62,14 @@ jobs: |
64 | 62 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
65 | 63 | with: |
66 | 64 | fetch-depth: 0 |
67 | | - # For testing, use the SDK development branch |
68 | | - ref: DVR-330-example-apps-content-autogeneration |
69 | 65 |
|
70 | 66 | - name: Checkout Docs Repo |
71 | 67 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 |
72 | 68 | with: |
73 | 69 | repository: immutable/docs |
74 | 70 | token: ${{ secrets.TS_IMMUTABLE_SDK_GITHUB_TOKEN }} |
75 | 71 | path: imx-docs |
76 | | - # For testing, use the docs development branch |
77 | | - ref: DVR-331-example-app-layout |
| 72 | + ref: main |
78 | 73 |
|
79 | 74 | - name: Setup environment variables |
80 | 75 | run: | |
@@ -109,44 +104,32 @@ jobs: |
109 | 104 | - name: Update version link |
110 | 105 | run: ./.github/scripts/update-docs-link.sh |
111 | 106 |
|
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 |
119 | | - shell: bash |
120 | | - |
121 | 107 | - name: Push SDK Docs to docs |
122 | 108 | 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 |
| 109 | + run: ./.github/scripts/push-docs.sh |
127 | 110 | shell: bash |
128 | 111 |
|
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." |
| 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 |
| 123 | + shell: bash |
| 124 | + |
| 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." |
0 commit comments