Skip browserslist config in docs workflow #1167
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: docs | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - v* | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| - name: Create required ignored seed.json | |
| run: "echo '{}' > ./entry_types/scrolled/package/.storybook/seed.json" | |
| - name: Build pageflow SassDoc | |
| uses: codevise/sassdoc-action@v1.2 | |
| with: | |
| input: ./app/assets/stylesheets/pageflow/themes | |
| output: ./out/theme/<ref> | |
| theme: pageflow | |
| themePackage: tf/sassdoc-theme-pageflow#dist | |
| # documentation-js-action bundles an old Browserslist that cannot parse the | |
| # `supports` query in .browserslistrc. Doc generation does not depend on | |
| # browser targets, so drop the config for this workflow. | |
| - name: Remove browserslist config for JSDoc build | |
| run: rm -f .browserslistrc | |
| - name: Build pageflow JSDoc | |
| uses: codevise/documentation-js-action@v1.3.1 | |
| with: | |
| input: "./package/src/editor ./package/src/ui ./package/src/testHelpers" | |
| output: ./out/js/<ref> | |
| config: ./package/documentation.yml | |
| github: true | |
| projectName: pageflow | |
| sortOrder: alpha | |
| theme: pageflow-documentation-js-theme | |
| themePackage: codevise/pageflow-documentation-js-theme#master | |
| - name: Build pageflow-scrolled JSDoc | |
| uses: codevise/documentation-js-action@v1.3.1 | |
| with: | |
| input: ./entry_types/scrolled/package/src ./entry_types/scrolled/package/spec/support | |
| output: ./out/scrolled/js/<ref> | |
| config: ./entry_types/scrolled/package/documentation.yml | |
| github: true | |
| projectName: pageflow-scrolled | |
| sortOrder: alpha | |
| theme: pageflow-documentation-js-theme | |
| themePackage: codevise/pageflow-documentation-js-theme#master | |
| - name: Deploy | |
| run: | | |
| wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh | |
| bash ./entrypoint.sh | |
| env: | |
| PERSONAL_TOKEN: ${{ secrets.CODEVISE_BOT_PERSONAL_TOKEN }} | |
| PUBLISH_BRANCH: master | |
| PUBLISH_DIR: ./out | |
| EXTERNAL_REPOSITORY: codevise/pageflow-docs | |
| INPUT_KEEPFILES: true | |
| INPUT_COMMITMESSAGE: "Update docs" | |
| INPUT_USERNAME: "codevise-bot" | |
| INPUT_USEREMAIL: "bot@codevise.de" |