Skip to content

Commit

Permalink
Sync Operator docs on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Jan 3, 2024
1 parent 8e6e2b8 commit 740cbe3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/sync_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Synchronize documentation to the website
on:
push:
branches:
- 'main'
- '2.2.x'
- '*'

jobs:
upload:
Expand All @@ -23,15 +22,8 @@ jobs:
ref: master
path: infinispan.github.io

- if: github.ref == 'refs/heads/main'
name: Copy docs to main
run: |
cp -r documentation/asciidoc/titles/operator.html infinispan.github.io/docs/infinispan-operator/main
- if: github.ref == 'refs/heads/2.2.x'
name: Copy docs to main
run: |
cp -r documentation/asciidoc/titles/operator.html infinispan.github.io/docs/infinispan-operator/2.2.x
- name: Copy Docs
run: cp -r documentation/asciidoc/titles/operator.html infinispan.github.io/docs/infinispan-operator/${{ github.ref_name }}

- name: Commit files
run: |
Expand Down

0 comments on commit 740cbe3

Please sign in to comment.