Skip to content

Commit

Permalink
Trigger docs task on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
anti-social committed Feb 14, 2023
1 parent 73182c4 commit 4e4461d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ jobs:
publish:
needs: integ-tests
if: |
always() &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -251,13 +250,7 @@ jobs:
docs:
needs: publish
if: |
always() &&
!contains(github.event.head_commit.message, '[skip docs]') &&
github.event_name == 'push' && (
startsWith(github.ref, 'refs/tags/v') ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/docs'
)
!contains(github.event.head_commit.message, '[skip docs]')
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -287,9 +280,21 @@ jobs:
run: ./gradlew dokkaHtmlMultiModule $GRADLE_ARGS

- name: Copy docs
if: |
github.event_name == 'push' && (
startsWith(github.ref, 'refs/tags/v') ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/docs'
)
run: ./gradlew gitPublishCopy $GRADLE_ARGS

- name: Publish documentation
if: |
github.event_name == 'push' && (
startsWith(github.ref, 'refs/tags/v') ||
github.ref == 'refs/heads/master' ||
github.ref == 'refs/heads/docs'
)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4e4461d

Please sign in to comment.