1 parent 6295734 commit 6e27bb0Copy full SHA for 6e27bb0
1 file changed
.github/workflows/deploy.yml
@@ -13,7 +13,7 @@ jobs:
13
group: check-${{ github.ref }}
14
cancel-in-progress: true
15
steps:
16
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
17
18
- name: Install dependencies
19
run: |
@@ -49,7 +49,11 @@ jobs:
49
50
set -e
51
cd /srv/apps/blueva-menu
52
- git pull --ff-only
+ # Mirror the remote rather than merge into it: a deploy checkout has
53
+ # nothing worth keeping, and a rewritten history makes a fast-forward
54
+ # impossible. Ignored files (.env, vendor, public/build) are untouched.
55
+ git fetch origin main
56
+ git reset --hard origin/main
57
composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
58
npm ci
59
npm run build
0 commit comments