We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51cc241 commit a19ac34Copy full SHA for a19ac34
.github/workflows/deploy-docs.yml
@@ -29,9 +29,11 @@ jobs:
29
- name: Clone target repo
30
run: |
31
git clone https://x-access-token:${{ secrets.TARGET_REPO_PAT }}@github.com/explodinglabs/explodinglabs.com.git target-repo
32
- rm -rf target-repo/$(basename "$GITHUB_REPOSITORY")
33
- mkdir -p target-repo/$(basename "$GITHUB_REPOSITORY")
34
- cp -a site/. target-repo/$(basename "$GITHUB_REPOSITORY")/
+ PROJECT_NAME=${GITHUB_REPOSITORY##*/} # get repo name, e.g., superstack.docs
+ PROJECT_NAME=${PROJECT_NAME%.docs} # remove .docs suffix if present
+ rm -rf target-repo/$PROJECT_NAME
35
+ mkdir -p target-repo/$PROJECT_NAME
36
+ cp -a site/. target-repo/$PROJECT_NAME/
37
env:
38
GIT_AUTHOR_NAME: GitHub Actions
39
GIT_COMMITTER_NAME: GitHub Actions
0 commit comments