Skip to content

Commit

Permalink
action/docs - concurency group for preview and closed action for prs
Browse files Browse the repository at this point in the history
  • Loading branch information
george-cosma committed Jul 9, 2024
1 parent 698fac2 commit 39c9b6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages_deploy_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./web
publish_branch: gh-pages
publish_branch: gh-pages
9 changes: 8 additions & 1 deletion .github/workflows/pages_requirement_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Requirement Preview Deploy
on:
# When a PR is merged (or force push to main)
pull_request:
types:
- opened
- reopened
- synchronize
- closed
paths:
- 'requirements/**/'
- '.github/workflows/pages_requirement_preview.yaml'
Expand All @@ -12,6 +17,8 @@ permissions:
contents: write
pull-requests: write

concurrency: preview-${{ github.ref }}

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -32,4 +39,4 @@ jobs:
uses: rossjrw/[email protected]
with:
source-dir: output/html/
umbrella-dir: requirements/pr-preview
umbrella-dir: requirements/pr-preview

0 comments on commit 39c9b6e

Please sign in to comment.