diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a415752..3da6f97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,8 @@ jobs: if: github.ref == 'refs/heads/main' uses: actions/upload-artifact@v3.2.1-node20 with: - name: project2-${{ github.sha }}-${{ github.run_attempt }} + # Re-running only deploy must be able to reuse this run's tested release. + name: project2-${{ github.sha }}-${{ github.run_id }} path: | apps/api/dist apps/api/migrations @@ -57,7 +58,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/download-artifact@v3-node20 with: - name: project2-${{ github.sha }}-${{ github.run_attempt }} + name: project2-${{ github.sha }}-${{ github.run_id }} path: release - name: Install production dependencies run: cd release && npm ci --omit=dev diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 52561dd..6782286 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -7,6 +7,7 @@ cp -R "$source_dir"/. "$release"/ ln -sfn "$release" /srv/t31-project2/current sudo -n systemctl restart t31-project2-api curl --fail \ + --header 'X-Requested-With: recipe-platform' \ --retry 10 \ --retry-all-errors \ --retry-delay 2 \