This is an automated email from the ASF dual-hosted git repository.
apratim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb-site.git
The following commit(s) were added to refs/heads/master by this push:
new fe1c0f6 Update config.yml
fe1c0f6 is described below
commit fe1c0f62b9565711f645bcbeda9b20802dfd6cb6
Author: Apratim Shukla <[email protected]>
AuthorDate: Wed May 22 17:23:28 2024 -0700
Update config.yml
---
.circleci/config.yml | 65 ++++++++++++++++++++++++++--------------------------
1 file changed, 32 insertions(+), 33 deletions(-)
diff --git a/.circleci/config.yml b/.circleci/config.yml
index d10fb04..a2dcff4 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,44 +1,43 @@
-# This config was automatically generated from your source code
-# Stacks detected: cicd:github-actions:.github/workflows,deps:node:.
version: 2.1
+
orbs:
- node: circleci/node@5
+ node: circleci/[email protected]
+
jobs:
- build-node:
- # Build node project
- executor: node/default
+ build:
+ docker:
+ - image: cimg/node:20.13.1
steps:
- checkout
- - node/install-packages:
- pkg-manager: npm
+ - node/install:
+ node-version: "20.13.1"
- run:
- command: npm run build
+ name: Install dependencies
+ command: npm install
- run:
- name: Create the ~/artifacts directory if it doesn't exist
- command: mkdir -p ~/artifacts
- # Copy output to artifacts dir
- - run:
- name: Copy artifacts
- command: cp -R build dist public .output .next .docusaurus
~/artifacts 2>/dev/null || true
- - store_artifacts:
- path: ~/artifacts
- destination: node-build
- deploy:
- # This is an example deploy job, not actually used by the workflow
- docker:
- - image: cimg/base:stable
- steps:
- # Replace this with steps to deploy to users
+ name: Build the site
+ command: npm run build
- run:
- name: deploy
- command: '#e.g. ./deploy.sh'
+ name: Add asf.yaml file
+ command: |
+ echo "publish:" > ./out/.asf.yaml
+ echo " whoami: asf-site" >> ./out/.asf.yaml
- run:
- name: found github actions config
- command: ':'
+ name: Deploy to asf-site branch
+ command: |
+ cd out
+ git init
+ git config user.name "circleci"
+ git config user.email "[email protected]"
+ git add .
+ git commit -m "Deploy to asf-site"
+ git push --force
https://${CIRCLE_TOKEN}@github.com/apache/incubator-resilientdb-site.git
master:asf-site
+
workflows:
- build:
+ version: 2
+ deploy:
jobs:
- - build-node
- # - deploy:
- # requires:
- # - build-node
+ - build:
+ filters:
+ branches:
+ only: main