@@ -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
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+ #
0 commit comments