Skip to content

Commit 4334515

Browse files
committed
release docs in release folder
1 parent 37ebab2 commit 4334515

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ jobs:
1616
- name: Build and Deploy Docs
1717
run: set -o pipefail && env NSUnbufferedIO=YES Scripts/update-gh-pages-documentation-site
1818
env:
19+
CURRENT_BRANCH_NAME: release
1920
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}

Scripts/update-gh-pages-documentation-site

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ git fetch
4545
git worktree add --checkout gh-pages origin/gh-pages
4646

4747
# Get the name of the current branch to use as the subdirectory for the deployment
48-
CURRENT_BRANCH_NAME=`git rev-parse --abbrev-ref HEAD`
48+
if [ -z "$CURRENT_BRANCH_NAME"]; then
49+
CURRENT_BRANCH_NAME=`git rev-parse --abbrev-ref HEAD`
50+
fi
4951

5052
# Replace any forward slashes in the current branch name with dashes
5153
DEPLOYMENT_SUBDIRECTORY=${CURRENT_BRANCH_NAME//\//-}

0 commit comments

Comments
 (0)