diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 93bf665..759c406 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,12 +1,14 @@ name: Deploy to Scaleway on: - push: + pull_request: + types: [closed] branches: - main jobs: build-and-deploy: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: @@ -44,7 +46,3 @@ jobs: - name: Deploy to Scaleway Object Storage run: | s3cmd sync --delete-removed --acl-public public/ s3://${{ secrets.SCW_BUCKET_NAME }}/ - - - name: Invalidate cache (optional) - run: | - echo "If using Scaleway CDN, add cache invalidation here"