-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 885 Bytes
/
build.yml
File metadata and controls
40 lines (33 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: deploy
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node Setup
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Remove folders from static export
run: rm -rf ./src/app/admin ./src/app/api
- name: Build and Static HTML Export
run: npm run build
env:
POSTGRES_URL: ${{ secrets.POSTGRES_URL }}
NEXT_EXPORT_TYPE: export
- name: Enable custom domain
run: cp CNAME ./out
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: out