[ci] Fix docs deployment
Trigger build on tag pushes, and simplify the condition for calling .ci/deploy-docs.sh.
This commit is contained in:
parent
40b21edf48
commit
efab763885
|
@ -3,11 +3,6 @@
|
|||
set -x
|
||||
set -o errexit -o nounset
|
||||
|
||||
if [ "$GITHUB_REF_TYPE" != "tag" ]; then
|
||||
echo "Skipping docs deployment on a non-tagged build";
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
DOCSDIR=build-docs
|
||||
REVISION=$(git rev-parse --short HEAD)
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ name: linux-ci
|
|||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
tags: ["*.*.*"]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
|
@ -26,7 +27,7 @@ jobs:
|
|||
- name: generate documentations
|
||||
run: ninja -Cbuild harfbuzz-doc
|
||||
- name: deploy documentations
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
if: github.ref_type == 'tag'
|
||||
run: .ci/deploy-docs.sh
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
|
Loading…
Reference in New Issue