|
16 | 16 | description: "Push to qiskit.org?"
|
17 | 17 | required: false
|
18 | 18 | type: boolean
|
19 |
| - do_translatables: |
20 |
| - description: "Push translatable strings?" |
21 |
| - required: false |
22 |
| - type: boolean |
23 | 19 |
|
24 | 20 | jobs:
|
25 | 21 | build:
|
|
53 | 49 | - name: Install dependencies
|
54 | 50 | run: tools/install_ubuntu_docs_dependencies.sh
|
55 | 51 |
|
56 |
| - # This is just to have tox create the environment, so we can use it to execute the tutorials. |
57 |
| - # We want to re-use it later for the build, hence 'tox run --notest' instead of 'tox devenv'. |
58 |
| - - name: Prepare Python environment |
59 |
| - run: tox run -e docs --notest |
60 |
| - |
61 |
| - # The reason to use the custom script rather than letting 'nbsphinx' do its thing normally |
62 |
| - # within the Sphinx build is so that the execution process is the same as in the test CI. |
63 |
| - - name: Execute tutorials in place |
64 |
| - run: .tox/docs/bin/python tools/execute_tutorials.py docs/tutorials |
65 |
| - env: |
66 |
| - QISKIT_CELL_TIMEOUT: "300" |
67 |
| - |
68 | 52 | - name: Build documentation
|
69 |
| - # We can skip re-installing the package, since we just did it a couple of steps ago. |
70 |
| - run: tox run -e docs --skip-pkg-install |
71 |
| - env: |
72 |
| - QISKIT_ENABLE_ANALYTICS: "true" |
73 |
| - # We've already built them. |
74 |
| - QISKIT_DOCS_BUILD_TUTORIALS: "never" |
75 |
| - DOCS_PROD_BUILD: "true" |
76 |
| - |
77 |
| - - name: Build translatable strings |
78 |
| - run: tox run -e gettext |
79 |
| - env: |
80 |
| - # We've already built them. |
81 |
| - QISKIT_DOCS_BUILD_TUTORIALS: "never" |
82 |
| - DOCS_PROD_BUILD: "true" |
| 53 | + run: tox run -e docs |
83 | 54 |
|
84 | 55 | - name: Store built documentation artifact
|
85 | 56 | uses: actions/upload-artifact@v3
|
|
91 | 62 | !**/.buildinfo
|
92 | 63 | if-no-files-found: error
|
93 | 64 |
|
94 |
| - - name: Store translatable strings artifact |
95 |
| - uses: actions/upload-artifact@v3 |
96 |
| - with: |
97 |
| - name: qiskit-translatables |
98 |
| - path: ./docs/locale/en/* |
99 |
| - if-no-files-found: error |
100 |
| - |
101 | 65 | deploy:
|
102 | 66 | if: github.event_name != 'workflow_dispatch' || inputs.do_deployment
|
103 | 67 | name: Deploy to qiskit.org
|
@@ -198,26 +162,3 @@ jobs:
|
198 | 162 | JOINED_PREFIXES: ${{ steps.choose.outputs.joined_prefixes }}
|
199 | 163 | RCLONE_KEY: ${{ secrets.ENCRYPTED_RCLONE_KEY}}
|
200 | 164 | RCLONE_IV: ${{ secrets.ENCRYPTED_RCLONE_IV }}
|
201 |
| - |
202 |
| - deploy_translatables: |
203 |
| - if: (github.event_name == 'workflow_dispatch' && inputs.do_translatables) || (github.event_name == 'push' && github.ref_type == 'tag' && github.ref_name == needs.build.outputs.latest_tag) |
204 |
| - name: Push translatable strings |
205 |
| - needs: [build] |
206 |
| - runs-on: ubuntu-latest |
207 |
| - |
208 |
| - steps: |
209 |
| - - uses: actions/checkout@v4 |
210 |
| - with: |
211 |
| - path: 'qiskit' |
212 |
| - |
213 |
| - - uses: actions/download-artifact@v3 |
214 |
| - with: |
215 |
| - name: qiskit-translatables |
216 |
| - path: 'deploy' |
217 |
| - |
218 |
| - - name: Deploy translations |
219 |
| - id: ssh_key |
220 |
| - run: qiskit/tools/deploy_translatable_strings.sh "${{ github.workspace }}/deploy" |
221 |
| - env: |
222 |
| - encrypted_deploy_po_branch_key: ${{ secrets.ENCRYPTED_DEPLOY_PO_BRANCH_KEY }} |
223 |
| - encrypted_deploy_po_branch_iv: ${{ secrets.ENCRYPTED_DEPLOY_PO_BRANCH_IV }} |
0 commit comments