Skip to content

Commit da5fda8

Browse files
committed
⚙️ Move build app workflow to a separate file
1 parent 82197e7 commit da5fda8

File tree

2 files changed

+31
-21
lines changed

2 files changed

+31
-21
lines changed

.github/workflows/build-app.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 📦 Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-app:
13+
runs-on: ubuntu-latest
14+
name: 🛠️ Build app
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup pnpm 9
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 9
22+
23+
- name: Install dependencies
24+
run: pnpm install
25+
26+
- name: Build app
27+
run: pnpm vite:build
28+
env:
29+
UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }}
30+
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
31+
SVGL_API_REQUESTS: ${{ secrets.SVGL_API_REQUESTS }}

.github/workflows/check-app.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,3 @@ jobs:
4646
- name: Check svgs size
4747
run: pnpm start
4848
working-directory: ./utils/check-size
49-
50-
build-app:
51-
runs-on: ubuntu-latest
52-
name: 🛠️ Build app
53-
steps:
54-
- uses: actions/checkout@v4
55-
56-
- name: Setup pnpm 9
57-
uses: pnpm/action-setup@v4
58-
with:
59-
version: 9
60-
61-
- name: Install dependencies
62-
run: pnpm install
63-
64-
- name: Build app
65-
run: pnpm vite:build
66-
env:
67-
UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }}
68-
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
69-
SVGL_API_REQUESTS: ${{ secrets.SVGL_API_REQUESTS }}

0 commit comments

Comments
 (0)