mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
Merge pull request #280 from IT4Change/refine-deploy-docs-workflow
ci(workflow): refine deploy docs workflow
This commit is contained in:
commit
79db307ee8
2
.github/file-filters.yml
vendored
2
.github/file-filters.yml
vendored
@ -14,7 +14,9 @@ frontend-test-build-docker: &frontend-test-build-docker
|
|||||||
|
|
||||||
frontend-test-build-docs: &frontend-test-build-docs
|
frontend-test-build-docs: &frontend-test-build-docs
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
|
- '.github/workflows/frontend.deploy.docs.yml'
|
||||||
- '.vuepress/*'
|
- '.vuepress/*'
|
||||||
|
- 'package.json'
|
||||||
|
|
||||||
frontend-test-build-storybook: &frontend-test-build-storybook
|
frontend-test-build-storybook: &frontend-test-build-storybook
|
||||||
- '**/*'
|
- '**/*'
|
||||||
18
.github/workflows/frontend.deploy.docs.yml
vendored
18
.github/workflows/frontend.deploy.docs.yml
vendored
@ -4,7 +4,25 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
jobs:
|
jobs:
|
||||||
|
files-changed:
|
||||||
|
name: Detect File Changes
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changes: ${{ steps.changes.outputs.frontend-test-build-docs }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Check for e2e docs file changes
|
||||||
|
uses: dorny/paths-filter@v3.0.2
|
||||||
|
id: changes
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
filters: .github/file-filters.yml
|
||||||
|
list-files: shell
|
||||||
|
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
|
if: needs.files-changed.outputs.changes == 'true'
|
||||||
|
needs: files-changed
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user