-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
64 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,32 @@ commands: | |
at: ./workspace | ||
- run: cd ./workspace/v3/scripts/code-type-checking/<<parameters.language>> && docker build -t code-check . | ||
- run: docker run code-check | ||
git-shallow-clone: | ||
steps: | ||
- run: | ||
name: Add github.com to known hosts | ||
command: | | ||
mkdir -p ~/.ssh | ||
touch ~/.ssh/known_hosts | ||
ls ~/.ssh | ||
ssh-keyscan -H github.com > ~/.ssh/known_hosts | ||
- run: | ||
name: Add the user ssh key | ||
command: | | ||
umask 077 | ||
echo "$CHECKOUT_KEY" > ~/.ssh/id_rsa | ||
chmod 0600 ~/.ssh/id_rsa | ||
- run: | ||
name: Shallow clone the repo | ||
command: | | ||
git clone --depth=1 --single-branch -b $CIRCLE_BRANCH [email protected]:$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME . | ||
jobs: | ||
build-docs: | ||
docker: | ||
- image: cimg/node:20.0 | ||
steps: | ||
- checkout | ||
- git-shallow-clone | ||
# - checkout | ||
- node/install-packages: | ||
pkg-manager: npm | ||
app-dir: v3 | ||
|
@@ -45,16 +65,16 @@ jobs: | |
root: . | ||
paths: | ||
- v3/scripts/code-type-checking | ||
release-on-backend-website-dev: | ||
create-supertokens-backend-website-dev-tag: | ||
docker: | ||
- image: cimg/node:18.0 | ||
steps: | ||
- checkout | ||
- run: git clone --depth=1 [email protected]:supertokens/supertokens-backend-website.git supertokens-backend-website | ||
- run: git clone --depth=1 [email protected]:supertokens/supertokens-backend-website.git --branch=docs-v3 supertokens-backend-website | ||
- attach_workspace: | ||
at: ./workspace | ||
- run: git config --global user.email "$EMAIL" && git config --global user.name "$NAME" | ||
- run: cd supertokens-backend-website && git checkout -b test-new-docs-branch | ||
# - run: cd supertokens-backend-website && git checkout -b test-new-docs-branch | ||
- run: | ||
name: Copy Docusaurus Build to Backend Website | ||
command: | | ||
|
@@ -103,7 +123,7 @@ workflows: | |
build-and-deploy: | ||
jobs: | ||
- build-docs | ||
- release-on-backend-website-dev: | ||
- create-supertokens-backend-website-dev-tag: | ||
requires: | ||
- build-docs | ||
# filters: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters