Skip to content

Commit cc4fd8b

Browse files
committed
update deploy workflow
1 parent ca86227 commit cc4fd8b

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,8 @@ jobs:
2020
- name: Run tests in Docker container
2121
run: docker run -e CI=true cygnetops/react-test npm test
2222

23-
deploy:
24-
needs: docker-test
25-
runs-on: ubuntu-latest
26-
27-
steps:
28-
- name: Checkout repo
29-
uses: actions/checkout@v4
30-
31-
- name: Set up Node.js
32-
uses: actions/setup-node@v4
33-
with:
34-
node-version: '22.x'
35-
36-
- name: Install dependencies
37-
run: npm ci
38-
39-
- name: Build the app
40-
run: npm run build --if-present
41-
42-
- name: Clean up node_modules (optional)
43-
run: rm -rf node_modules
44-
4523
- name: Generate deploy package (zip)
46-
run: |
47-
zip -r deploy.zip . \
48-
-x "*.git*" \
49-
"node_modules/*" \
50-
".github/*" \
51-
"*.test.js" \
52-
"*.md"
24+
run: zip -r deploy.zip . -x '*.git*'
5325

5426
- name: Deploy to Elastic Beanstalk
5527
uses: einaregilsson/beanstalk-deploy@v18

0 commit comments

Comments
 (0)