Skip to content

Commit

Permalink
fix: deploy pages only on main
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Feb 19, 2024
1 parent 45ad26a commit 550e9a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ jobs:
#########################################################

collect_webpages:
# if: ${{ (github.head_ref == 'main' || github.ref_name == 'main') && inputs.runner == 'ubuntu-latest' && inputs.verset == 'latest' }}
if: ${{ (github.head_ref == 'meson-test' || github.ref_name == 'meson-test') && inputs.runner == 'ubuntu-latest' && inputs.verset == 'latest' }}
if: ${{ (github.head_ref == 'main' || github.ref_name == 'main') && inputs.runner == 'ubuntu-latest' && inputs.verset == 'latest' }}
name: Collect webpages
needs:
- doc_generate
Expand Down Expand Up @@ -508,8 +507,7 @@ jobs:
path: pages/

deploy_webpages:
# if: ${{ (github.head_ref == 'main' || github.ref_name == 'main') && inputs.runner == 'ubuntu-latest' && inputs.verset == 'latest' }}
if: ${{ (github.head_ref == 'meson-test' || github.ref_name == 'meson-test') && inputs.runner == 'ubuntu-latest' && inputs.verset == 'latest' }}
if: ${{ (github.head_ref == 'main' || github.ref_name == 'main') && inputs.runner == 'ubuntu-latest' && inputs.verset == 'latest' }}
name: Deploy webpages
needs: collect_webpages
permissions:
Expand Down

0 comments on commit 550e9a0

Please sign in to comment.