Skip to content

Commit 8c685ff

Browse files
committed
add git pull step to deployment workflow and remove duplicate command from deploy script
1 parent f530faf commit 8c685ff

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ jobs:
66
deploy:
77
runs-on: self-hosted
88
steps:
9+
- name: Pull latest code
10+
working-directory: ${{ vars.DEPLOY_PATH }}
11+
run: git pull origin master
12+
913
- name: Deploy
1014
working-directory: ${{ vars.DEPLOY_PATH }}
1115
run: bin/deploy

bin/deploy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -e
44

5-
git pull origin master
6-
75
docker-compose exec -T app composer install --no-interaction --no-dev --optimize-autoloader --no-scripts
86

97
docker run --rm -v "$(pwd)":/app -w /app node:22-alpine sh -c "npm ci && npm run build"

0 commit comments

Comments
 (0)