Revert "workflows: build docs if theres any changes in docs directory"

This reverts commit ed19fee93d.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-04-05 18:50:19 +07:00
parent a6f4443aa9
commit 81b2fe4461
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 1 additions and 19 deletions

View file

@ -1,18 +0,0 @@
name: Build-docs
on:
push:
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build
run: bash build-docs.sh
env:
DOCS_KEY: ${{ secrets.DOCS_KEY }}

View file

@ -3,7 +3,7 @@ export DOCS_KEY
VENV="$(pwd)"/venv VENV="$(pwd)"/venv
export VENV export VENV
if [[ "$(echo "$GITHUB_REF" | cut -d '/' -f "1 2")" == "refs/tags" ]] || [[ "$GITHUB_REF" == "refs/heads/main" ]]; then if [[ "$(echo "$GITHUB_REF" | cut -d '/' -f "1 2")" == "refs/tags" ]]; then
branch="main" branch="main"
elif [[ "$GITHUB_REF" == "refs/heads/staging" ]]; then elif [[ "$GITHUB_REF" == "refs/heads/staging" ]]; then
branch="staging" branch="staging"