aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorStellar Rounin <stellarrounin@gmail.com>2026-09-30 03:59:45 +0000
committerStellar Rounin <stellarrounin@gmail.com>2026-09-30 03:59:45 +0000
commit7a40bc53825f997be5180cc1201f1fa7552402e7 (patch)
tree71bc4b4e40db3956acc40aabf2c0ab1be44e7a9c /.github
parent2b49f55f8a74d788901c8fc01b62c12a3cadf5ed (diff)
downloadunkagi-7a40bc53825f997be5180cc1201f1fa7552402e7.tar.xz
unkagi-7a40bc53825f997be5180cc1201f1fa7552402e7.zip
ci(github actions): Add gh actions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..fbb5f82
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,52 @@
+name: Deploy
+
+on:
+ push:
+ branches:
+ - main
+
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+concurrency:
+ group: pages
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup pnpm
+ uses: pnpm/action-setup@v4
+ with:
+ version: 11.25.0
+
+ - name: Setup Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: pnpm
+
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+
+ - name: Build
+ run: pnpm build
+
+ - name: Setup Pages
+ uses: actions/configure-pages@v5
+
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: ./dist
+
+ - name: Deploy
+ id: deployment
+ uses: actions/deploy-pages@v4