Skip to content

Commit

Permalink
Workflow triggered only when src/website** or .devcontainer/** are mo…
Browse files Browse the repository at this point in the history
…dified now
  • Loading branch information
JordanChen123 committed Jun 24, 2024
1 parent 6a73bf6 commit e3cc3a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ name: Deployment

on:
workflow_dispatch:
# Uncomment once we are ready to deploy
#push:
# branches:
# - main
pull_request:
branches:
- main
paths:
- 'src/website/**'
- '.devcontainer/**'

jobs:
deploy-web:
Expand All @@ -31,7 +38,7 @@ jobs:
npm run build
- name: Update docker image
uses: appleboy/ssh-action@v0.1.9
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
Expand Down

0 comments on commit e3cc3a1

Please sign in to comment.