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 0e41b34  Create nextjs.yml
0e41b34 is described below

commit 0e41b3423aa55676e7c11d59815f6beef2a6ea06
Author: Apratim Shukla <[email protected]>
AuthorDate: Wed May 22 11:17:04 2024 -0700

    Create nextjs.yml
---
 .github/workflows/nextjs.yml | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml
new file mode 100644
index 0000000..f108d42
--- /dev/null
+++ b/.github/workflows/nextjs.yml
@@ -0,0 +1,37 @@
+name: Deploy to ASF Site
+
+on:
+  push:
+    branches:
+      - main
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v2
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v2
+        with:
+          node-version: '20.13.1'
+
+      - name: Install dependencies
+        run: npm install
+
+      - name: Build the site
+        run: npm run build
+
+      - name: Deploy to asf-site branch
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+        run: |
+          cd out
+          git init
+          git config user.name "github-actions"
+          git config user.email "[email protected]"
+          git add .
+          git commit -m "Deploy to asf-site"
+          git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN 
}}@github.com/<YOUR_GITHUB_USERNAME>/<YOUR_PROJECT_REPO>.git master:asf-site

Reply via email to