Add TCM failover docs (#4485) #205
This file contains 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: Generate DOCX | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'latest' | |
- '2.11' | |
jobs: | |
generate-singlehtml: | |
runs-on: ubuntu-latest | |
container: tarantool/doc-builder:fat-4.3 | |
steps: | |
- uses: actions/checkout@v3 | |
id: checkout | |
with: | |
submodules: recursive | |
- name: preprare modules | |
run: | | |
cmake . | |
make pull-modules | |
make build-modules | |
- name: make singlehtml-en | |
run: | | |
make singlehtml | |
- name: save singlehtml-en | |
uses: actions/upload-artifact@v3 | |
with: | |
name: singlehtml-en | |
path: output/singlehtml/en/alternate_build_master.html | |
- name: make singlehtml-ru | |
run: make singlehtml-ru | |
- name: save singlehtml-ru | |
uses: actions/upload-artifact@v3 | |
with: | |
name: singlehtml-ru | |
path: output/singlehtml/ru/alternate_build_master.html | |
- name: save pandoc filters from the repo | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pandoc | |
path: pandoc/filter-espd.py | |
generate-docx: | |
needs: generate-singlehtml | |
runs-on: ubuntu-latest | |
container: ghcr.io/tarantool/pandoc-builder:latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | |
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | |
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}} | |
S3_ENDPOINT_URL: ${{secrets.S3_ENDPOINT_URL}} | |
S3_UPLOAD_PATH: ${{secrets.S3_DOCX_PATH}} | |
steps: | |
- name: download artifacts | |
uses: actions/download-artifact@v3 | |
- name: generate docx-en | |
run: | | |
pandoc singlehtml-en/alternate_build_master.html \ | |
--standalone \ | |
--verbose \ | |
--from html \ | |
--to docx \ | |
--output tarantool-en.docx \ | |
--metadata lang=en \ | |
--metadata toc-title='Table of content' \ | |
--filter pandoc/filter-espd.py \ | |
--table-of-contents \ | |
--toc-depth=2 | |
- name: generate docx-ru | |
run: | | |
pandoc singlehtml-ru/alternate_build_master.html \ | |
--standalone \ | |
--verbose \ | |
--from html \ | |
--to docx \ | |
--output tarantool-ru.docx \ | |
--metadata lang=ru \ | |
--metadata toc-title='Оглавление' \ | |
--filter pandoc/filter-espd.py \ | |
--table-of-contents \ | |
--toc-depth=2 | |
- name: Get branch name | |
run: echo "DEPLOYMENT_NAME=$(echo ${{ github.ref }} | sed -r 's|^.*/.*/(.*)$|\1|')" >> $GITHUB_ENV | |
- name: upload docx | |
run: | | |
aws s3 cp tarantool-en.docx ${{ env.S3_UPLOAD_PATH }}/${{ env.DEPLOYMENT_NAME }}/ --endpoint-url=${{ env.S3_ENDPOINT_URL }} | |
aws s3 cp tarantool-ru.docx ${{ env.S3_UPLOAD_PATH }}/${{ env.DEPLOYMENT_NAME }}/ --endpoint-url=${{ env.S3_ENDPOINT_URL }} |