fix execute doc #55
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: Reduce Adoc | |
| on: | |
| push: | |
| paths: | |
| - README-source.adoc | |
| - README-EN-source.adoc | |
| - docs/execute-source.adoc | |
| - docs/execute-en-source.adoc | |
| branches: ['**'] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Install Asciidoctor Reducer | |
| run: sudo gem install asciidoctor-reducer | |
| - name: Reduce README | |
| # to preserve preprocessor conditionals, add the --preserve-conditionals option | |
| run: asciidoctor-reducer --preserve-conditionals -o README.adoc README-source.adoc | |
| - name: Reduce README-EN | |
| run: asciidoctor-reducer --preserve-conditionals -o README-EN.adoc README-EN-source.adoc | |
| - name: Reduce docs/execute | |
| run: asciidoctor-reducer --preserve-conditionals -o docs/execute.adoc docs/execute-source.adoc | |
| - name: Reduce docs/execute-en | |
| run: asciidoctor-reducer --preserve-conditionals -o docs/execute-en.adoc docs/execute-en-source.adoc | |
| - name: Commit and Push README files | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: README.adoc README-EN.adoc docs/execute.adoc docs/execute-en.adoc |