Skip to content

Commit

Permalink
Document gh-pages updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban authored Aug 8, 2021
1 parent 45691df commit 1507b44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: CI

on:
push:
# Make sure to not enable `push` events for other branches as this will
# trigger the publishing to gh-pages from any branch.
# If you need to enable more branches look below and update
# the conditions for which gh-pages are updated.
branches: [ trunk ]
tags:
- incremental-*
Expand Down Expand Up @@ -64,8 +68,8 @@ jobs:
mv apidocs website/docs
- name: Publish documentation for push on trunk
# FIXME:
# Add push event condition before merge.
# Since we don't have a separate job for apidocs gh-pages updating
# hijack the normal apidoc test and publish the resulting files.
if: contains(matrix['tox-env'], 'apidocs') && github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 1507b44

Please sign in to comment.