|
14 | 14 | JETPACK_SECRET_KEY: ${{ secrets.JETPACK_SECRET_KEY }}
|
15 | 15 |
|
16 | 16 | jobs:
|
17 |
| - deploy-docs-preview: |
18 |
| - runs-on: ubuntu-latest |
19 |
| - steps: |
20 |
| - - uses: actions/checkout@v3 |
21 |
| - - uses: dorny/paths-filter@v2 |
22 |
| - id: filter |
23 |
| - with: |
24 |
| - filters: | |
25 |
| - docs: |
26 |
| - - 'docs/**' |
27 |
| - - uses: bahmutov/npm-install@v1 |
28 |
| - if: steps.filter.outputs.docs == 'true' |
29 |
| - with: |
30 |
| - working-directory: docs/app |
31 |
| - - name: Mount docs node_modules |
32 |
| - if: steps.filter.outputs.docs == 'true' |
33 |
| - uses: actions/cache@v3 |
34 |
| - with: |
35 |
| - path: docs/app/node_modules |
36 |
| - key: docs-node-modules |
37 |
| - - name: Docs build |
38 |
| - if: steps.filter.outputs.docs == 'true' |
39 |
| - run: | |
40 |
| - yarn install |
41 |
| - yarn run build |
| 17 | + markdown-lint: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v3 |
| 21 | + - uses: dorny/paths-filter@v2 |
| 22 | + id: filter |
| 23 | + with: |
| 24 | + filters: | |
| 25 | + docs: |
| 26 | + - 'docs/**' |
| 27 | + - name: markdownlint-cli |
| 28 | + |
| 29 | + with: |
| 30 | + files: docs/app/docs |
| 31 | + config_file: docs/.markdownlint.yaml |
| 32 | + |
| 33 | + deploy-to-preview: |
| 34 | + runs-on: ubuntu-latest |
| 35 | + needs: markdown-lint |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v3 |
| 38 | + - uses: dorny/paths-filter@v2 |
| 39 | + id: filter |
| 40 | + with: |
| 41 | + filters: | |
| 42 | + docs: |
| 43 | + - 'docs/**' |
| 44 | + - uses: bahmutov/npm-install@v1 |
| 45 | + if: steps.filter.outputs.docs == 'true' |
| 46 | + with: |
42 | 47 | working-directory: docs/app
|
43 |
| - - name: Deploy docs preview |
44 |
| - if: steps.filter.outputs.docs == 'true' |
45 |
| - run: | |
46 |
| - curl https://get.jetpack.io -fsSL | bash -s -- -y |
47 |
| - jetpack up docs \ |
48 |
| - --ttl 300 --debug \ |
49 |
| - -n jetpack-io-preview-$(echo "${GITHUB_REF_NAME}" | sed "s/[^0-9a-zA-Z]/-/g") |
| 48 | + - name: Mount docs node_modules |
| 49 | + if: steps.filter.outputs.docs == 'true' |
| 50 | + uses: actions/cache@v3 |
| 51 | + with: |
| 52 | + path: docs/app/node_modules |
| 53 | + key: docs-node-modules |
| 54 | + - name: Docs build |
| 55 | + if: steps.filter.outputs.docs == 'true' |
| 56 | + run: | |
| 57 | + yarn install |
| 58 | + yarn run build |
| 59 | + working-directory: docs/app |
| 60 | + - name: Deploy docs preview |
| 61 | + if: steps.filter.outputs.docs == 'true' |
| 62 | + run: | |
| 63 | + curl https://get.jetpack.io -fsSL | bash -s -- -y |
| 64 | + jetpack up docs \ |
| 65 | + --ttl 300 --debug \ |
| 66 | + -n jetpack-io-preview-$(echo "${GITHUB_REF_NAME}" | sed "s/[^0-9a-zA-Z]/-/g") |
0 commit comments