Skip to content

Commit

Permalink
chore(actions): deploy snapshot only on main source changes (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati authored Dec 31, 2023
1 parent e6ef4e2 commit 57bb1aa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
validation-required: ${{ steps.filter.outputs.validate }}
deploy-required: ${{ steps.filter.outputs.deploy }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -45,6 +46,17 @@ jobs:
filters: |
validate:
- '!(README.md|LICENSE|.gitignore|tools/**)'
deploy:
- 'vertx-vaadin-flow/pom.xml'
- 'vertx-vaadin-flow/src/**'
- 'vaadin-flow-sockjs/pom.xml'
- 'vaadin-flow-sockjs/src/**'
- 'vertx-vaadin-flow-jandex/pom.xml'
- 'vertx-vaadin-quarkus-extension/pom.xml'
- 'vertx-vaadin-quarkus-extension/runtime/pom.xml'
- 'vertx-vaadin-quarkus-extension/runtime/src/**'
- 'vertx-vaadin-quarkus-extension/deployment/pom.xml'
- 'vertx-vaadin-quarkus-extension/deployment/src/**'
build:
name: Build
needs: [changes]
Expand Down Expand Up @@ -282,7 +294,7 @@ jobs:
permissions:
contents: read
packages: write
if: ${{ success() && github.event_name == 'push' && github.ref_protected }}
if: ${{ success() && github.event_name == 'push' && github.ref_protected && needs.changes.outputs.deploy-required == 'true'}}
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 57bb1aa

Please sign in to comment.