Skip to content
Snippets Groups Projects
Commit 34a7f1ec authored by Sergey Bronnikov's avatar Sergey Bronnikov Committed by Yaroslav Lobankov
Browse files

ci: fix conditions in publishing workflow

Publishing workflow will run building module API documentation for
opened or reopened pull request with label "full-ci" and will publish
documentation on Github Pages on push to the master branch.

NO_CHANGELOG=ci
NO_DOC=ci
NO_TEST=ci
parent 8be76a22
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,17 @@ name: Publish module API documentation
on:
push:
branches: [master]
pull_request:
types: [opened, reopened, synchronize, labeled]
workflow_dispatch:
jobs:
publish-api-doc:
# Run on push to the branch 'master' or on pull request if the 'full-ci'
# label is set.
if: github.repository == 'tarantool/tarantool' &&
( github.event_name != 'pull_request' ||
contains(github.event.pull_request.labels.*.name, 'full-ci') )
runs-on: ubuntu-latest
steps:
- uses: tarantool/actions/cleanup@master
......@@ -28,6 +36,8 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4.4.0
with:
folder: doc/
if: github.ref == 'refs/heads/master' &&
github.event_name != 'pull_request'
- name: Send VK Teams message on failure
if: failure()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment