Skip to content

Commit a7f5db7

Browse files
committed
env build workflow fix
1 parent 42bf1ea commit a7f5db7

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,35 @@ on:
77
permissions:
88
contents: write
99
jobs:
10-
build-and-deploy:
10+
build:
1111
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout 🛎️
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Node ✨
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 20.x
20+
21+
- name: Install Dependencies 🔧
22+
run:
23+
yarn install
24+
25+
- name: Build 🔧
26+
run:
27+
yarn run build
28+
29+
- name: Post Build Actions 🛠️
30+
run:
31+
yarn run github-post-build
32+
env:
33+
NODE_ENV: production
34+
35+
deploy:
36+
runs-on: ubuntu-latest
37+
needs: build
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
1239
environment: github-pages
1340
steps:
1441
- name: Checkout 🛎️

0 commit comments

Comments
 (0)