diff --git a/.gitea/workflows/cicd.yaml b/.gitea/workflows/cicd.yaml index 77864c4..2fa306d 100644 --- a/.gitea/workflows/cicd.yaml +++ b/.gitea/workflows/cicd.yaml @@ -57,17 +57,12 @@ jobs: - name: Sync to AWS run: | paths=$(find ./public -type f -name "*.html" | sed -e 's|^./public/|/|' -e 's/.*/"&"/' | tr '\n' ' ') - echo "paths: $paths" - echo "----" - set -x - echo aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths $paths | base64 -w 0 cat << EOF > myaction.sh aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths $paths EOF cat myaction.sh | base64 -w 0 chmod 755 ./myaction.sh ./myaction.sh - aws cloudfront create-invalidation --distribution-id EWYXMJ6L92Q6I --paths $paths if: gitea.ref == 'refs/heads/main' env: # Or as an environment variable AWS_SECRET_ACCESS_KEY: ${{ secrets.AWSSECRETKEY }}