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 70329e4  Create nuxtjs.yml
70329e4 is described below

commit 70329e43d5176b657970e5e83cc56507fca3fa9a
Author: Apratim Shukla <[email protected]>
AuthorDate: Wed May 22 11:30:50 2024 -0700

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

diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml
new file mode 100644
index 0000000..43bb5e8
--- /dev/null
+++ b/.github/workflows/nuxtjs.yml
@@ -0,0 +1,42 @@
+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: Add asf.yaml file
+        run: |
+          echo "publish:" > out/asf.yaml
+          echo "  whoami: asf-site" >> out/asf.yaml
+
+      - name: Deploy to asf-site branch
+        env:
+          GITHUB_TOKEN: ${{ secrets.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.TOKEN 
}}@github.com/apache/incubator-resilientdb-site.git master:asf-site

Reply via email to