Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,35 @@ name: docs
on:
pull_request:
branches: [main]
paths:
- 'flaml/*'
- 'website/*'
- '.github/workflows/deploy-website.yml'
push:
branches: [main]
paths:
- 'flaml/*'
- 'website/*'
- '.github/workflows/deploy-website.yml'
workflow_dispatch:
merge_group:
types: [checks_requested]

permissions:
contents: write
pull-requests: read

jobs:
changes:
runs-on: ubuntu-latest
outputs:
docs: ${{ steps.filter.outputs.docs }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v3
id: filter
Comment thread
thinkall marked this conversation as resolved.
with:
filters: |
docs:
- 'flaml/**'
- 'website/**'
- '.github/workflows/deploy-website.yml'

checks:
if: github.event_name != 'push'
needs: changes
if: github.event_name != 'push' && (needs.changes.outputs.docs == 'true' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group')
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -58,7 +67,8 @@ jobs:
npm run build
fi
gh-release:
if: github.event_name != 'pull_request'
needs: changes
if: github.event_name != 'pull_request' && (needs.changes.outputs.docs == 'true' || github.event_name == 'workflow_dispatch')
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Loading