This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch docusaurus-staging
in repository https://gitbox.apache.org/repos/asf/cloudstack-www.git

commit 9ae7ee1206d55bbe41fe2f4ca324578957701642
Author: Rohit Yadav <[email protected]>
AuthorDate: Wed Feb 8 15:32:40 2023 +0530

    basic automation for deployment
    
    Signed-off-by: Rohit Yadav <[email protected]>
---
 .asf.yaml                    | 46 +++++++++++++++++++++++++++++++++++++++++---
 .github/workflows/deploy.yml | 43 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 3 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 9cfb7694..379e16c2 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,8 +1,48 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+github:
+  description: "Apache CloudStack Website"
+  homepage: https://cloudstack.apache.org/
+  features:
+    issues: false
+    projects: false
+    wiki: false
+  labels:
+    - cloudstack
+  enabled_merge_buttons:
+    squash:  true
+    merge:   false
+    rebase:  false
+  protected_branches:
+    main: {}
+
+notifications:
+  commits:      [email protected]
+  issues:       [email protected]
+  pullrequests: [email protected]
+  jobs:         [email protected]
+
 # Staging and publishing profile for yourproject-website.git:
 staging:
   profile: ~
-  whoami:  main
- 
- 
+  whoami: docusaurus-staging
+  outputdir: build
+
 publish:
   whoami:  asf-site
+  outputdir: content
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 00000000..86fb1da1
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,43 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+name: Pages
+
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions/setup-node@v3
+        with:
+          node-version: 16.x
+          cache: yarn
+      - run: yarn install --frozen-lockfile
+      - run: yarn build
+      - uses: peaceiris/actions-gh-pages@v3
+        if: github.event_name != 'pull_request'
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./build
+          publish_branch: docusaurus-staging # TODO: change this to deploy 
branch 'asf-site'
+          force_orphan: true

Reply via email to