mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
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:
parent
a6f4443aa9
commit
81b2fe4461
2 changed files with 1 additions and 19 deletions
18
.github/workflows/build-docs-dir.yml
vendored
18
.github/workflows/build-docs-dir.yml
vendored
|
|
@ -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 }}
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue