ソースを参照

add build workflow

Aneurin Barker Snook 1 年間 前
コミット
9478047c5a
1 ファイル変更28 行追加0 行削除
  1. 28 0
      .github/workflows/update-gh-pages.yml

+ 28 - 0
.github/workflows/update-gh-pages.yml

@@ -0,0 +1,28 @@
+name: "Update gh-pages"
+
+on:
+  push:
+    branches:
+      - develop
+
+jobs:
+  build:
+    name: Build and publish
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Set up Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: 20.x
+
+      - name: Install dependencies
+        run: npm ci
+
+      - name: Build statics
+        run: npm run build
+
+      - name: Publish to gh-pages
+        run: npm run publish