diff --git a/.github/workflows/optimize-images.yml b/.github/workflows/optimize-images.yml index 1ad6869c8..4276d8450 100644 --- a/.github/workflows/optimize-images.yml +++ b/.github/workflows/optimize-images.yml @@ -35,14 +35,8 @@ jobs: - name: Run image optimizer run: npm run optimize-images - - name: Commit optimized images - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add public/images || true - if ! git diff --staged --quiet; then - git commit -m "chore(images): add optimized WebP images [skip ci]" || echo "no changes to commit" - git push - else - echo "No optimized images to commit" - fi + - name: Upload optimized images + uses: actions/upload-artifact@v4 + with: + name: optimized-images + path: public/images diff --git a/amplify.yml b/amplify.yml new file mode 100644 index 000000000..20c1233e1 --- /dev/null +++ b/amplify.yml @@ -0,0 +1,18 @@ +version: 1 +applications: + - frontend: + phases: + preBuild: + commands: + - npm ci + - npm run optimize-images + build: + commands: + - npm run build + artifacts: + baseDirectory: build + files: + - "**/*" + cache: + paths: + - node_modules/**/