Skip to content

Commit 490c9bc

Browse files
committed
fix(cicd): remove filter for nginx files from workflow
1 parent 58c8304 commit 490c9bc

2 files changed

Lines changed: 26 additions & 15 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,43 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v3
13-
- uses: pnpm/action-setup@v2
13+
14+
- name: Setup Node & Pnpm
15+
uses: pnpm/action-setup@v2
1416
with:
1517
version: 8.9.2
1618
- uses: actions/setup-node@v3
1719
with:
1820
node-version: '18'
1921
cache: 'pnpm'
20-
- name: 'Create env file'
22+
23+
- name: Create env file
2124
run: |
2225
echo "${{ secrets.ENV_FILE }}" > .env
2326
echo "${{ secrets.ENV_LOCAL_FILE }}" > .env.local
24-
- name: Clean
27+
28+
- name: Install Deps
2529
run: pnpm i
30+
2631
- name: Build
2732
run: pnpm run build
28-
- name: Run
29-
run: sudo pnpm run build.storybook
30-
- name: Upload static files
33+
34+
- name: Build Storybook
35+
run: pnpm run build.storybook
36+
37+
- name: Upload Landing Page Files
3138
uses: actions/upload-artifact@v3
3239
with:
3340
name: landing-page
3441
path: out
3542
retention-days: 1
36-
- name: Upload static files#2
43+
- name: Upload Storybook Files
3744
uses: actions/upload-artifact@v3
3845
with:
3946
name: storybook
4047
path: storybook-static
4148
retention-days: 1
49+
4250
deploy:
4351
name: Deploy
4452
runs-on: self-hosted
@@ -48,16 +56,11 @@ jobs:
4856
uses: actions/download-artifact@v3
4957
with:
5058
name: storybook
51-
- name: Download Frontend
59+
- name: Download Landing Page
5260
uses: actions/download-artifact@v3
5361
with:
5462
name: landing-page
55-
- uses: dorny/paths-filter@v2.2.1
56-
id: filter
57-
with:
58-
filters: |
59-
ngnix:
60-
- '**/*
63+
6164
- name: Deploy Nginx
6265
run: |
6366
sudo docker compose build -f docker-compose.yaml --no-cache --log-level 0
@@ -68,3 +71,11 @@ jobs:
6871
run: |
6972
sudo docker cp ./out landing-page-server:/www/data/
7073
sudo docker cp ./storybook-static landing-page-server:/www/data/
74+
75+
# - uses: dorny/paths-filter@v2.2.1
76+
# id: filter
77+
# with:
78+
# filters: |
79+
# ngnix:
80+
# - '**/*
81+
#

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev.storybook": "storybook dev -p 6006",
88
"start": "next start",
99
"build": "next build",
10-
"build.storybook": "pnpm run build & storybook build",
10+
"build.storybook": "storybook build",
1111
"build.tailwind": "pnpm dlx tailwindcss -o ./src/styles/tailwind.css",
1212
"move.prod": "cp -fr out build && cp -fr storybook-static build",
1313
"prepare": "husky install",

0 commit comments

Comments
 (0)