aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nextjs.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/nextjs.yaml b/.github/workflows/nextjs.yaml
new file mode 100644
index 0000000..488bcc8
--- /dev/null
+++ b/.github/workflows/nextjs.yaml
@@ -0,0 +1,26 @@
+name: Build and Deploy Next.js
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: npm install
+
+ - name: Build
+ run: npm run build
+
+ - name: Deploy
+ uses: JamesIves/[email protected]
+ with:
+ branch: gh-pages
+ folder: .next
+ token: ${{ secrets.GITHUB_TOKEN }}